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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 void OnClearTabSpecificPermissions( | 166 void OnClearTabSpecificPermissions( |
167 int tab_id, | 167 int tab_id, |
168 const std::vector<std::string>& extension_ids); | 168 const std::vector<std::string>& extension_ids); |
169 void OnUpdateUserScripts(base::SharedMemoryHandle table); | 169 void OnUpdateUserScripts(base::SharedMemoryHandle table); |
170 void OnUsingWebRequestAPI( | 170 void OnUsingWebRequestAPI( |
171 bool adblock, | 171 bool adblock, |
172 bool adblock_plus, | 172 bool adblock_plus, |
173 bool other_webrequest); | 173 bool other_webrequest); |
174 void OnShouldUnload(const std::string& extension_id, int sequence_id); | 174 void OnShouldUnload(const std::string& extension_id, int sequence_id); |
175 void OnUnload(const std::string& extension_id); | 175 void OnUnload(const std::string& extension_id); |
| 176 void OnCancelUnload(const std::string& extension_id); |
176 | 177 |
177 // Update the list of active extensions that will be reported when we crash. | 178 // Update the list of active extensions that will be reported when we crash. |
178 void UpdateActiveExtensions(); | 179 void UpdateActiveExtensions(); |
179 | 180 |
180 // Calls RenderThread's RegisterExtension and keeps tracks of which v8 | 181 // Calls RenderThread's RegisterExtension and keeps tracks of which v8 |
181 // extension is for Chrome Extensions only. | 182 // extension is for Chrome Extensions only. |
182 void RegisterExtension(v8::Extension* extension, bool restrict_to_extensions); | 183 void RegisterExtension(v8::Extension* extension, bool restrict_to_extensions); |
183 | 184 |
184 // Sets up the host permissions for |extension|. | 185 // Sets up the host permissions for |extension|. |
185 void InitOriginPermissions(const extensions::Extension* extension); | 186 void InitOriginPermissions(const extensions::Extension* extension); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 scoped_ptr<ExtensionRequestSender> request_sender_; | 262 scoped_ptr<ExtensionRequestSender> request_sender_; |
262 | 263 |
263 // The current channel. From VersionInfo::GetChannel(). | 264 // The current channel. From VersionInfo::GetChannel(). |
264 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. | 265 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only. |
265 int chrome_channel_; | 266 int chrome_channel_; |
266 | 267 |
267 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); | 268 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); |
268 }; | 269 }; |
269 | 270 |
270 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ | 271 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ |
OLD | NEW |