Index: extensions/browser/api/guest_view/web_view/web_view_internal_api.h |
diff --git a/extensions/browser/api/guest_view/web_view/web_view_internal_api.h b/extensions/browser/api/guest_view/web_view/web_view_internal_api.h |
index 650d530bcb553a97d6476493be03716babc6502b..abe4bff56e7a908a0b94c6de86597dcc71bd21d7 100644 |
--- a/extensions/browser/api/guest_view/web_view/web_view_internal_api.h |
+++ b/extensions/browser/api/guest_view/web_view/web_view_internal_api.h |
@@ -129,6 +129,40 @@ class WebViewInternalInsertCSSFunction |
DISALLOW_COPY_AND_ASSIGN(WebViewInternalInsertCSSFunction); |
}; |
+class WebViewInternalAddContentScriptsFunction |
+ : public UIThreadExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("webViewInternal.addContentScripts", |
+ WEBVIEWINTERNAL_ADDCONTENTSCRIPTS); |
+ |
+ WebViewInternalAddContentScriptsFunction(); |
+ |
+ protected: |
+ ~WebViewInternalAddContentScriptsFunction() override; |
+ |
+ private: |
+ ExecuteCodeFunction::ResponseAction Run() final; |
Devlin
2015/04/14 23:04:57
While the "final" here is probably true, we usuall
Xi Han
2015/04/15 19:43:55
I think I got compiling errors when I first used o
|
+ |
+ DISALLOW_COPY_AND_ASSIGN(WebViewInternalAddContentScriptsFunction); |
+}; |
+ |
+class WebViewInternalRemoveContentScriptsFunction |
+ : public UIThreadExtensionFunction { |
+ public: |
+ DECLARE_EXTENSION_FUNCTION("webViewInternal.removeContentScripts", |
+ WEBVIEWINTERNAL_REMOVECONTENTSCRIPTS); |
+ |
+ WebViewInternalRemoveContentScriptsFunction(); |
+ |
+ protected: |
+ ~WebViewInternalRemoveContentScriptsFunction() override; |
+ |
+ private: |
+ ExecuteCodeFunction::ResponseAction Run() final; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(WebViewInternalRemoveContentScriptsFunction); |
+}; |
+ |
class WebViewInternalSetNameFunction : public WebViewInternalExtensionFunction { |
public: |
DECLARE_EXTENSION_FUNCTION("webViewInternal.setName", |