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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 // Runs on a different thread and should not use any member variables. | 95 // Runs on a different thread and should not use any member variables. |
96 static void DidInitializeServiceWorkerContextOnWorkerThread( | 96 static void DidInitializeServiceWorkerContextOnWorkerThread( |
97 v8::Local<v8::Context> v8_context, | 97 v8::Local<v8::Context> v8_context, |
98 const GURL& url); | 98 const GURL& url); |
99 | 99 |
100 void WillReleaseScriptContext(blink::WebLocalFrame* frame, | 100 void WillReleaseScriptContext(blink::WebLocalFrame* frame, |
101 const v8::Local<v8::Context>& context, | 101 const v8::Local<v8::Context>& context, |
102 int world_id); | 102 int world_id); |
103 | 103 |
104 // Runs on a different thread and should not use any member variables. | 104 // Runs on a different thread and should not use any member variables. |
105 static void WillDestroyServiceWorkerContextOnWorkerThread(const GURL& url); | 105 static void WillDestroyServiceWorkerContextOnWorkerThread( |
| 106 v8::Local<v8::Context> v8_context, |
| 107 const GURL& url); |
106 | 108 |
107 void DidCreateDocumentElement(blink::WebLocalFrame* frame); | 109 void DidCreateDocumentElement(blink::WebLocalFrame* frame); |
108 | 110 |
109 void OnExtensionResponse(int request_id, | 111 void OnExtensionResponse(int request_id, |
110 bool success, | 112 bool success, |
111 const base::ListValue& response, | 113 const base::ListValue& response, |
112 const std::string& error); | 114 const std::string& error); |
113 | 115 |
114 // Dispatches the event named |event_name| to all render views. | 116 // Dispatches the event named |event_name| to all render views. |
115 void DispatchEvent(const std::string& extension_id, | 117 void DispatchEvent(const std::string& extension_id, |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 306 |
305 // Status of webrequest usage. | 307 // Status of webrequest usage. |
306 bool webrequest_used_; | 308 bool webrequest_used_; |
307 | 309 |
308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 310 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
309 }; | 311 }; |
310 | 312 |
311 } // namespace extensions | 313 } // namespace extensions |
312 | 314 |
313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 315 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
OLD | NEW |