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