Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: extensions/renderer/dispatcher.h

Issue 985643004: Make ContentRendererClient::DidCreateScriptContext take a WebLocalFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: namespace Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698