OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_RENDERER_DISPATCHER_H_ | 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_ |
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ | 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 | 239 |
240 v8::Local<v8::Object> GetOrCreateBindObjectIfAvailable( | 240 v8::Local<v8::Object> GetOrCreateBindObjectIfAvailable( |
241 const std::string& api_name, | 241 const std::string& api_name, |
242 std::string* bind_name, | 242 std::string* bind_name, |
243 ScriptContext* context); | 243 ScriptContext* context); |
244 | 244 |
245 // Requires the GuestView modules in the module system of the ScriptContext | 245 // Requires the GuestView modules in the module system of the ScriptContext |
246 // |context|. | 246 // |context|. |
247 void RequireGuestViewModules(ScriptContext* context); | 247 void RequireGuestViewModules(ScriptContext* context); |
248 | 248 |
| 249 // Adds features that are specific to the current channel. |
| 250 void AddChannelSpecificFeatures(); |
| 251 |
| 252 // Returns whether or not the current channel can register a service worker. |
| 253 bool IsExtensionAllowedToUseServiceWorker(); |
| 254 |
249 // The delegate for this dispatcher. Not owned, but must extend beyond the | 255 // The delegate for this dispatcher. Not owned, but must extend beyond the |
250 // Dispatcher's own lifetime. | 256 // Dispatcher's own lifetime. |
251 DispatcherDelegate* delegate_; | 257 DispatcherDelegate* delegate_; |
252 | 258 |
253 // True if the IdleNotification timer should be set. | 259 // True if the IdleNotification timer should be set. |
254 bool set_idle_notifications_; | 260 bool set_idle_notifications_; |
255 | 261 |
256 // Contains all loaded extensions. This is essentially the renderer | 262 // Contains all loaded extensions. This is essentially the renderer |
257 // counterpart to ExtensionService in the browser. It contains information | 263 // counterpart to ExtensionService in the browser. It contains information |
258 // about all extensions currently loaded by the browser. | 264 // about all extensions currently loaded by the browser. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 | 313 |
308 // Status of webrequest usage. | 314 // Status of webrequest usage. |
309 bool webrequest_used_; | 315 bool webrequest_used_; |
310 | 316 |
311 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 317 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
312 }; | 318 }; |
313 | 319 |
314 } // namespace extensions | 320 } // namespace extensions |
315 | 321 |
316 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 322 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |