| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 const std::string& webview_partition_id() { return webview_partition_id_; } | 80 const std::string& webview_partition_id() { return webview_partition_id_; } |
| 81 | 81 |
| 82 bool activity_logging_enabled() const { return activity_logging_enabled_; } | 82 bool activity_logging_enabled() const { return activity_logging_enabled_; } |
| 83 | 83 |
| 84 void OnRenderFrameCreated(content::RenderFrame* render_frame); | 84 void OnRenderFrameCreated(content::RenderFrame* render_frame); |
| 85 | 85 |
| 86 bool IsExtensionActive(const std::string& extension_id) const; | 86 bool IsExtensionActive(const std::string& extension_id) const; |
| 87 | 87 |
| 88 void DidCreateScriptContext(blink::WebLocalFrame* frame, | 88 void DidCreateScriptContext(blink::WebLocalFrame* frame, |
| 89 const v8::Local<v8::Context>& context, | 89 const v8::Local<v8::Context>& context, |
| 90 int extension_group, | |
| 91 int world_id); | 90 int world_id); |
| 92 | 91 |
| 93 // Runs on a different thread and should only use thread safe member | 92 // Runs on a different thread and should only use thread safe member |
| 94 // variables. | 93 // variables. |
| 95 void DidInitializeServiceWorkerContextOnWorkerThread( | 94 void DidInitializeServiceWorkerContextOnWorkerThread( |
| 96 v8::Local<v8::Context> v8_context, | 95 v8::Local<v8::Context> v8_context, |
| 97 int64_t service_worker_version_id, | 96 int64_t service_worker_version_id, |
| 98 const GURL& url); | 97 const GURL& url); |
| 99 | 98 |
| 100 void WillReleaseScriptContext(blink::WebLocalFrame* frame, | 99 void WillReleaseScriptContext(blink::WebLocalFrame* frame, |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // if this renderer is a WebView guest render process. Otherwise, this will be | 289 // if this renderer is a WebView guest render process. Otherwise, this will be |
| 291 // empty. | 290 // empty. |
| 292 std::string webview_partition_id_; | 291 std::string webview_partition_id_; |
| 293 | 292 |
| 294 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 293 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 295 }; | 294 }; |
| 296 | 295 |
| 297 } // namespace extensions | 296 } // namespace extensions |
| 298 | 297 |
| 299 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 298 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |