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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 void OnLoaded( | 148 void OnLoaded( |
149 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 149 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
150 void OnUnloaded(const std::string& id); | 150 void OnUnloaded(const std::string& id); |
151 void OnSetScriptingWhitelist( | 151 void OnSetScriptingWhitelist( |
152 const extensions::Extension::ScriptingWhitelist& extension_ids); | 152 const extensions::Extension::ScriptingWhitelist& extension_ids); |
153 void OnPageActionsUpdated(const std::string& extension_id, | 153 void OnPageActionsUpdated(const std::string& extension_id, |
154 const std::vector<std::string>& page_actions); | 154 const std::vector<std::string>& page_actions); |
155 void OnActivateExtension(const std::string& extension_id); | 155 void OnActivateExtension(const std::string& extension_id); |
156 void OnUpdatePermissions(int reason_id, | 156 void OnUpdatePermissions(int reason_id, |
157 const std::string& extension_id, | 157 const std::string& extension_id, |
158 const ExtensionAPIPermissionSet& apis, | 158 const extensions::APIPermissionSet& apis, |
159 const URLPatternSet& explicit_hosts, | 159 const URLPatternSet& explicit_hosts, |
160 const URLPatternSet& scriptable_hosts); | 160 const URLPatternSet& scriptable_hosts); |
161 void OnUpdateTabSpecificPermissions(int page_id, | 161 void OnUpdateTabSpecificPermissions(int page_id, |
162 int tab_id, | 162 int tab_id, |
163 const std::string& extension_id, | 163 const std::string& extension_id, |
164 const URLPatternSet& origin_set); | 164 const URLPatternSet& origin_set); |
165 void OnClearTabSpecificPermissions( | 165 void OnClearTabSpecificPermissions( |
166 int tab_id, | 166 int tab_id, |
167 const std::vector<std::string>& extension_ids); | 167 const std::vector<std::string>& extension_ids); |
168 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 168 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 int chrome_channel_; | 264 int chrome_channel_; |
265 | 265 |
266 // Routes events to the appropriate listener taking into consideration event | 266 // Routes events to the appropriate listener taking into consideration event |
267 // filters. | 267 // filters. |
268 scoped_ptr<extensions::EventFilter> event_filter_; | 268 scoped_ptr<extensions::EventFilter> event_filter_; |
269 | 269 |
270 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 270 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
271 }; | 271 }; |
272 | 272 |
273 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 273 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |