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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(const ExtensionMsg_Loaded_Params& params); |
| 103 void OnStartBatchLoad(); |
| 104 void OnEndBatchLoad(); |
103 void OnUnloaded(const std::string& id); | 105 void OnUnloaded(const std::string& id); |
104 void OnSetScriptingWhitelist( | 106 void OnSetScriptingWhitelist( |
105 const Extension::ScriptingWhitelist& extension_ids); | 107 const Extension::ScriptingWhitelist& extension_ids); |
106 void OnPageActionsUpdated(const std::string& extension_id, | 108 void OnPageActionsUpdated(const std::string& extension_id, |
107 const std::vector<std::string>& page_actions); | 109 const std::vector<std::string>& page_actions); |
108 void OnActivateApplication(const std::string& extension_id); | 110 void OnActivateApplication(const std::string& extension_id); |
109 void OnActivateExtension(const std::string& extension_id); | 111 void OnActivateExtension(const std::string& extension_id); |
110 void OnUpdatePermissions(int reason_id, | 112 void OnUpdatePermissions(int reason_id, |
111 const std::string& extension_id, | 113 const std::string& extension_id, |
112 const ExtensionAPIPermissionSet& apis, | 114 const ExtensionAPIPermissionSet& apis, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 bool is_webkit_initialized_; | 167 bool is_webkit_initialized_; |
166 | 168 |
167 std::string test_extension_id_; | 169 std::string test_extension_id_; |
168 | 170 |
169 // Status of webrequest usage for known extensions. | 171 // Status of webrequest usage for known extensions. |
170 // TODO(mpcomplete): remove. http://crbug.com/100411 | 172 // TODO(mpcomplete): remove. http://crbug.com/100411 |
171 bool webrequest_adblock_; | 173 bool webrequest_adblock_; |
172 bool webrequest_adblock_plus_; | 174 bool webrequest_adblock_plus_; |
173 bool webrequest_other_; | 175 bool webrequest_other_; |
174 | 176 |
| 177 // Whether we're in the middle of an ExtensionMsg_StartBatchLoad sequence. |
| 178 bool is_batch_load_in_progress_; |
| 179 |
| 180 // Extensions needing a platform-app stylesheet. |
| 181 ExtensionSet extensions_needing_stylesheet_; |
| 182 |
175 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 183 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
176 }; | 184 }; |
177 | 185 |
178 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 186 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |