on_load_script_injector.mojom 634 B

1234567891011121314151617
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. module on_load_script_injector.mojom;
  5. import "mojo/public/mojom/base/shared_memory.mojom";
  6. // Interface associated with RenderFrames for managing on-load JavaScript
  7. // injection tasks the frame. Does not enforce script injection policies,
  8. // which must be implemented at a higher level.
  9. interface OnLoadScriptInjector {
  10. // |script|: The script to inject, in UTF-16.
  11. AddOnLoadScript(mojo_base.mojom.ReadOnlySharedMemoryRegion script);
  12. ClearOnLoadScripts();
  13. };