OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 friend class RenderViewTest; | 95 friend class RenderViewTest; |
96 | 96 |
97 // RenderProcessObserver implementation: | 97 // RenderProcessObserver implementation: |
98 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 98 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
99 virtual void WebKitInitialized() OVERRIDE; | 99 virtual void WebKitInitialized() OVERRIDE; |
100 virtual void IdleNotification() OVERRIDE; | 100 virtual void IdleNotification() OVERRIDE; |
101 | 101 |
102 void OnMessageInvoke(const std::string& extension_id, | 102 void OnMessageInvoke(const std::string& extension_id, |
103 const std::string& function_name, | 103 const std::string& function_name, |
104 const base::ListValue& args, | 104 const base::ListValue& args, |
105 const GURL& event_url); | 105 const GURL& event_url, |
| 106 bool user_gesture); |
106 void OnDeliverMessage(int target_port_id, const std::string& message); | 107 void OnDeliverMessage(int target_port_id, const std::string& message); |
107 void OnSetFunctionNames(const std::vector<std::string>& names); | 108 void OnSetFunctionNames(const std::vector<std::string>& names); |
108 void OnLoaded( | 109 void OnLoaded( |
109 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 110 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
110 void OnUnloaded(const std::string& id); | 111 void OnUnloaded(const std::string& id); |
111 void OnSetScriptingWhitelist( | 112 void OnSetScriptingWhitelist( |
112 const Extension::ScriptingWhitelist& extension_ids); | 113 const Extension::ScriptingWhitelist& extension_ids); |
113 void OnPageActionsUpdated(const std::string& extension_id, | 114 void OnPageActionsUpdated(const std::string& extension_id, |
114 const std::vector<std::string>& page_actions); | 115 const std::vector<std::string>& page_actions); |
115 void OnActivateApplication(const std::string& extension_id); | 116 void OnActivateApplication(const std::string& extension_id); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // Status of webrequest usage for known extensions. | 181 // Status of webrequest usage for known extensions. |
181 // TODO(mpcomplete): remove. http://crbug.com/100411 | 182 // TODO(mpcomplete): remove. http://crbug.com/100411 |
182 bool webrequest_adblock_; | 183 bool webrequest_adblock_; |
183 bool webrequest_adblock_plus_; | 184 bool webrequest_adblock_plus_; |
184 bool webrequest_other_; | 185 bool webrequest_other_; |
185 | 186 |
186 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 187 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
187 }; | 188 }; |
188 | 189 |
189 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 190 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |