| 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 20 matching lines...) Expand all Loading... |
| 31 class GURL; | 31 class GURL; |
| 32 class ModuleSystem; | 32 class ModuleSystem; |
| 33 class URLPattern; | 33 class URLPattern; |
| 34 struct ExtensionMsg_ExternalConnectionInfo; | 34 struct ExtensionMsg_ExternalConnectionInfo; |
| 35 struct ExtensionMsg_Loaded_Params; | 35 struct ExtensionMsg_Loaded_Params; |
| 36 struct ExtensionMsg_TabConnectionInfo; | 36 struct ExtensionMsg_TabConnectionInfo; |
| 37 struct ExtensionMsg_UpdatePermissions_Params; | 37 struct ExtensionMsg_UpdatePermissions_Params; |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 class WebFrame; | 40 class WebFrame; |
| 41 class WebLocalFrame; |
| 41 class WebSecurityOrigin; | 42 class WebSecurityOrigin; |
| 42 } | 43 } |
| 43 | 44 |
| 44 namespace base { | 45 namespace base { |
| 45 class ListValue; | 46 class ListValue; |
| 46 } | 47 } |
| 47 | 48 |
| 48 namespace content { | 49 namespace content { |
| 49 class RenderThread; | 50 class RenderThread; |
| 50 } | 51 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 bool IsExtensionActive(const std::string& extension_id) const; | 90 bool IsExtensionActive(const std::string& extension_id) const; |
| 90 | 91 |
| 91 // Finds the extension for the JavaScript context associated with the | 92 // Finds the extension for the JavaScript context associated with the |
| 92 // specified |frame| and isolated world. If |world_id| is zero, finds the | 93 // specified |frame| and isolated world. If |world_id| is zero, finds the |
| 93 // extension ID associated with the main world's JavaScript context. If the | 94 // extension ID associated with the main world's JavaScript context. If the |
| 94 // JavaScript context isn't from an extension, returns empty string. | 95 // JavaScript context isn't from an extension, returns empty string. |
| 95 const Extension* GetExtensionFromFrameAndWorld(const blink::WebFrame* frame, | 96 const Extension* GetExtensionFromFrameAndWorld(const blink::WebFrame* frame, |
| 96 int world_id, | 97 int world_id, |
| 97 bool use_effective_url); | 98 bool use_effective_url); |
| 98 | 99 |
| 99 void DidCreateScriptContext(blink::WebFrame* frame, | 100 void DidCreateScriptContext(blink::WebLocalFrame* frame, |
| 100 const v8::Handle<v8::Context>& context, | 101 const v8::Handle<v8::Context>& context, |
| 101 int extension_group, | 102 int extension_group, |
| 102 int world_id); | 103 int world_id); |
| 103 | 104 |
| 104 void WillReleaseScriptContext(blink::WebFrame* frame, | 105 void WillReleaseScriptContext(blink::WebLocalFrame* frame, |
| 105 const v8::Handle<v8::Context>& context, | 106 const v8::Handle<v8::Context>& context, |
| 106 int world_id); | 107 int world_id); |
| 107 | 108 |
| 108 void DidCreateDocumentElement(blink::WebFrame* frame); | 109 void DidCreateDocumentElement(blink::WebFrame* frame); |
| 109 | 110 |
| 110 void DidMatchCSS( | 111 void DidMatchCSS( |
| 111 blink::WebFrame* frame, | 112 blink::WebFrame* frame, |
| 112 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 113 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
| 113 const blink::WebVector<blink::WebString>& stopped_matching_selectors); | 114 const blink::WebVector<blink::WebString>& stopped_matching_selectors); |
| 114 | 115 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 323 |
| 323 // Status of webrequest usage. | 324 // Status of webrequest usage. |
| 324 bool webrequest_used_; | 325 bool webrequest_used_; |
| 325 | 326 |
| 326 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 327 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 327 }; | 328 }; |
| 328 | 329 |
| 329 } // namespace extensions | 330 } // namespace extensions |
| 330 | 331 |
| 331 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ | 332 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ |
| OLD | NEW |