| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 virtual bool OnControlMessageReceived(const IPC::Message& message); | 92 virtual bool OnControlMessageReceived(const IPC::Message& message); |
| 93 virtual void WebKitInitialized(); | 93 virtual void WebKitInitialized(); |
| 94 virtual void IdleNotification(); | 94 virtual void IdleNotification(); |
| 95 | 95 |
| 96 void OnMessageInvoke(const std::string& extension_id, | 96 void OnMessageInvoke(const std::string& extension_id, |
| 97 const std::string& function_name, | 97 const std::string& function_name, |
| 98 const base::ListValue& args, | 98 const base::ListValue& args, |
| 99 const GURL& event_url); | 99 const GURL& event_url); |
| 100 void OnDeliverMessage(int target_port_id, const std::string& message); | 100 void OnDeliverMessage(int target_port_id, const std::string& message); |
| 101 void OnSetFunctionNames(const std::vector<std::string>& names); | 101 void OnSetFunctionNames(const std::vector<std::string>& names); |
| 102 void OnLoaded(const ExtensionMsg_Loaded_Params& params); | 102 void OnLoaded( |
| 103 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
| 103 void OnUnloaded(const std::string& id); | 104 void OnUnloaded(const std::string& id); |
| 104 void OnSetScriptingWhitelist( | 105 void OnSetScriptingWhitelist( |
| 105 const Extension::ScriptingWhitelist& extension_ids); | 106 const Extension::ScriptingWhitelist& extension_ids); |
| 106 void OnPageActionsUpdated(const std::string& extension_id, | 107 void OnPageActionsUpdated(const std::string& extension_id, |
| 107 const std::vector<std::string>& page_actions); | 108 const std::vector<std::string>& page_actions); |
| 108 void OnActivateApplication(const std::string& extension_id); | 109 void OnActivateApplication(const std::string& extension_id); |
| 109 void OnActivateExtension(const std::string& extension_id); | 110 void OnActivateExtension(const std::string& extension_id); |
| 110 void OnUpdatePermissions(int reason_id, | 111 void OnUpdatePermissions(int reason_id, |
| 111 const std::string& extension_id, | 112 const std::string& extension_id, |
| 112 const ExtensionAPIPermissionSet& apis, | 113 const ExtensionAPIPermissionSet& apis, |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // Status of webrequest usage for known extensions. | 170 // Status of webrequest usage for known extensions. |
| 170 // TODO(mpcomplete): remove. http://crbug.com/100411 | 171 // TODO(mpcomplete): remove. http://crbug.com/100411 |
| 171 bool webrequest_adblock_; | 172 bool webrequest_adblock_; |
| 172 bool webrequest_adblock_plus_; | 173 bool webrequest_adblock_plus_; |
| 173 bool webrequest_other_; | 174 bool webrequest_other_; |
| 174 | 175 |
| 175 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 176 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 179 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
| OLD | NEW |