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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 friend class RenderViewTest; | 94 friend class RenderViewTest; |
95 | 95 |
96 // RenderProcessObserver implementation: | 96 // RenderProcessObserver implementation: |
97 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 97 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
98 virtual void WebKitInitialized() OVERRIDE; | 98 virtual void WebKitInitialized() OVERRIDE; |
99 virtual void IdleNotification() OVERRIDE; | 99 virtual void IdleNotification() OVERRIDE; |
100 | 100 |
101 void OnMessageInvoke(const std::string& extension_id, | 101 void OnMessageInvoke(const std::string& extension_id, |
102 const std::string& function_name, | 102 const std::string& function_name, |
103 const base::ListValue& args, | 103 const base::ListValue& args, |
104 const GURL& event_url); | 104 const GURL& event_url, |
| 105 bool user_caused); |
105 void OnDeliverMessage(int target_port_id, const std::string& message); | 106 void OnDeliverMessage(int target_port_id, const std::string& message); |
106 void OnSetFunctionNames(const std::vector<std::string>& names); | 107 void OnSetFunctionNames(const std::vector<std::string>& names); |
107 void OnLoaded( | 108 void OnLoaded( |
108 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 109 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
109 void OnUnloaded(const std::string& id); | 110 void OnUnloaded(const std::string& id); |
110 void OnSetScriptingWhitelist( | 111 void OnSetScriptingWhitelist( |
111 const Extension::ScriptingWhitelist& extension_ids); | 112 const Extension::ScriptingWhitelist& extension_ids); |
112 void OnPageActionsUpdated(const std::string& extension_id, | 113 void OnPageActionsUpdated(const std::string& extension_id, |
113 const std::vector<std::string>& page_actions); | 114 const std::vector<std::string>& page_actions); |
114 void OnActivateApplication(const std::string& extension_id); | 115 void OnActivateApplication(const std::string& extension_id); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Status of webrequest usage for known extensions. | 180 // Status of webrequest usage for known extensions. |
180 // TODO(mpcomplete): remove. http://crbug.com/100411 | 181 // TODO(mpcomplete): remove. http://crbug.com/100411 |
181 bool webrequest_adblock_; | 182 bool webrequest_adblock_; |
182 bool webrequest_adblock_plus_; | 183 bool webrequest_adblock_plus_; |
183 bool webrequest_other_; | 184 bool webrequest_other_; |
184 | 185 |
185 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 186 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
186 }; | 187 }; |
187 | 188 |
188 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 189 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |