| 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 void DidInitializeWorkerContext(v8::Local<v8::Context> context, |
| 99 const GURL& url); |
| 100 |
| 98 void WillReleaseScriptContext(blink::WebLocalFrame* frame, | 101 void WillReleaseScriptContext(blink::WebLocalFrame* frame, |
| 99 const v8::Local<v8::Context>& context, | 102 const v8::Local<v8::Context>& context, |
| 100 int world_id); | 103 int world_id); |
| 101 | 104 |
| 102 void DidCreateDocumentElement(blink::WebLocalFrame* frame); | 105 void DidCreateDocumentElement(blink::WebLocalFrame* frame); |
| 103 | 106 |
| 104 void OnExtensionResponse(int request_id, | 107 void OnExtensionResponse(int request_id, |
| 105 bool success, | 108 bool success, |
| 106 const base::ListValue& response, | 109 const base::ListValue& response, |
| 107 const std::string& error); | 110 const std::string& error); |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 313 |
| 311 // Status of webrequest usage. | 314 // Status of webrequest usage. |
| 312 bool webrequest_used_; | 315 bool webrequest_used_; |
| 313 | 316 |
| 314 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 317 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 315 }; | 318 }; |
| 316 | 319 |
| 317 } // namespace extensions | 320 } // namespace extensions |
| 318 | 321 |
| 319 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 322 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |