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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 void OnRenderFrameCreated(content::RenderFrame* render_frame); | 89 void OnRenderFrameCreated(content::RenderFrame* render_frame); |
90 | 90 |
91 bool IsExtensionActive(const std::string& extension_id) const; | 91 bool IsExtensionActive(const std::string& extension_id) const; |
92 | 92 |
93 void DidCreateScriptContext(blink::WebLocalFrame* frame, | 93 void DidCreateScriptContext(blink::WebLocalFrame* frame, |
94 const v8::Local<v8::Context>& context, | 94 const v8::Local<v8::Context>& context, |
95 int extension_group, | 95 int extension_group, |
96 int world_id); | 96 int world_id); |
97 | 97 |
| 98 // Runs on a different thread and should not use any member variables. |
| 99 static void DidInitializeServiceWorkerContextOnWorkerThread( |
| 100 v8::Local<v8::Context> context, |
| 101 const GURL& url); |
| 102 |
98 void WillReleaseScriptContext(blink::WebLocalFrame* frame, | 103 void WillReleaseScriptContext(blink::WebLocalFrame* frame, |
99 const v8::Local<v8::Context>& context, | 104 const v8::Local<v8::Context>& context, |
100 int world_id); | 105 int world_id); |
101 | 106 |
102 void DidCreateDocumentElement(blink::WebLocalFrame* frame); | 107 void DidCreateDocumentElement(blink::WebLocalFrame* frame); |
103 | 108 |
104 void OnExtensionResponse(int request_id, | 109 void OnExtensionResponse(int request_id, |
105 bool success, | 110 bool success, |
106 const base::ListValue& response, | 111 const base::ListValue& response, |
107 const std::string& error); | 112 const std::string& error); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 | 315 |
311 // Status of webrequest usage. | 316 // Status of webrequest usage. |
312 bool webrequest_used_; | 317 bool webrequest_used_; |
313 | 318 |
314 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 319 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
315 }; | 320 }; |
316 | 321 |
317 } // namespace extensions | 322 } // namespace extensions |
318 | 323 |
319 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 324 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |