| 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( | 105 static void WillDestroyServiceWorkerContextOnWorkerThread(const GURL& url); |
| 106 v8::Local<v8::Context> v8_context, | |
| 107 const GURL& url); | |
| 108 | 106 |
| 109 void DidCreateDocumentElement(blink::WebLocalFrame* frame); | 107 void DidCreateDocumentElement(blink::WebLocalFrame* frame); |
| 110 | 108 |
| 111 void OnExtensionResponse(int request_id, | 109 void OnExtensionResponse(int request_id, |
| 112 bool success, | 110 bool success, |
| 113 const base::ListValue& response, | 111 const base::ListValue& response, |
| 114 const std::string& error); | 112 const std::string& error); |
| 115 | 113 |
| 116 // Dispatches the event named |event_name| to all render views. | 114 // Dispatches the event named |event_name| to all render views. |
| 117 void DispatchEvent(const std::string& extension_id, | 115 void DispatchEvent(const std::string& extension_id, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 304 |
| 307 // Status of webrequest usage. | 305 // Status of webrequest usage. |
| 308 bool webrequest_used_; | 306 bool webrequest_used_; |
| 309 | 307 |
| 310 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 308 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 311 }; | 309 }; |
| 312 | 310 |
| 313 } // namespace extensions | 311 } // namespace extensions |
| 314 | 312 |
| 315 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 313 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |