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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 void OnLoaded( | 143 void OnLoaded( |
144 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); | 144 const std::vector<ExtensionMsg_Loaded_Params>& loaded_extensions); |
145 void OnUnloaded(const std::string& id); | 145 void OnUnloaded(const std::string& id); |
146 void OnSetScriptingWhitelist( | 146 void OnSetScriptingWhitelist( |
147 const extensions::Extension::ScriptingWhitelist& extension_ids); | 147 const extensions::Extension::ScriptingWhitelist& extension_ids); |
148 void OnPageActionsUpdated(const std::string& extension_id, | 148 void OnPageActionsUpdated(const std::string& extension_id, |
149 const std::vector<std::string>& page_actions); | 149 const std::vector<std::string>& page_actions); |
150 void OnActivateExtension(const std::string& extension_id); | 150 void OnActivateExtension(const std::string& extension_id); |
151 void OnUpdatePermissions(int reason_id, | 151 void OnUpdatePermissions(int reason_id, |
152 const std::string& extension_id, | 152 const std::string& extension_id, |
153 const ExtensionAPIPermissionSet& apis, | 153 const extensions::APIPermissionSet& apis, |
154 const URLPatternSet& explicit_hosts, | 154 const URLPatternSet& explicit_hosts, |
155 const URLPatternSet& scriptable_hosts); | 155 const URLPatternSet& scriptable_hosts); |
156 void OnUpdateTabSpecificPermissions(int page_id, | 156 void OnUpdateTabSpecificPermissions(int page_id, |
157 int tab_id, | 157 int tab_id, |
158 const std::string& extension_id, | 158 const std::string& extension_id, |
159 const URLPatternSet& origin_set); | 159 const URLPatternSet& origin_set); |
160 void OnClearTabSpecificPermissions( | 160 void OnClearTabSpecificPermissions( |
161 int tab_id, | 161 int tab_id, |
162 const std::vector<std::string>& extension_ids); | 162 const std::vector<std::string>& extension_ids); |
163 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 163 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 scoped_ptr<ExtensionRequestSender> request_sender_; | 255 scoped_ptr<ExtensionRequestSender> request_sender_; |
256 | 256 |
257 // The current channel. From VersionInfo::GetChannel(). | 257 // The current channel. From VersionInfo::GetChannel(). |
258 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. | 258 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. |
259 int chrome_channel_; | 259 int chrome_channel_; |
260 | 260 |
261 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 261 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
262 }; | 262 }; |
263 | 263 |
264 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 264 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |