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

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

Issue 1115563002: extensions/renderer: Use v8::Local instead of v8::Handle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « extensions/renderer/console.cc ('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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 ContentWatcher* content_watcher() { return content_watcher_.get(); } 85 ContentWatcher* content_watcher() { return content_watcher_.get(); }
86 86
87 RequestSender* request_sender() { return request_sender_.get(); } 87 RequestSender* request_sender() { return request_sender_.get(); }
88 88
89 void OnRenderViewCreated(content::RenderView* render_view); 89 void OnRenderViewCreated(content::RenderView* render_view);
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::Handle<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 WillReleaseScriptContext(blink::WebLocalFrame* frame, 98 void WillReleaseScriptContext(blink::WebLocalFrame* frame,
99 const v8::Handle<v8::Context>& context, 99 const v8::Local<v8::Context>& context,
100 int world_id); 100 int world_id);
101 101
102 void DidCreateDocumentElement(blink::WebFrame* frame); 102 void DidCreateDocumentElement(blink::WebFrame* frame);
103 103
104 void DidMatchCSS( 104 void DidMatchCSS(
105 blink::WebFrame* frame, 105 blink::WebFrame* frame,
106 const blink::WebVector<blink::WebString>& newly_matching_selectors, 106 const blink::WebVector<blink::WebString>& newly_matching_selectors,
107 const blink::WebVector<blink::WebString>& stopped_matching_selectors); 107 const blink::WebVector<blink::WebString>& stopped_matching_selectors);
108 108
109 void OnExtensionResponse(int request_id, 109 void OnExtensionResponse(int request_id,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 void UpdateContentCapabilities(ScriptContext* context); 224 void UpdateContentCapabilities(ScriptContext* context);
225 225
226 // Inserts static source code into |source_map_|. 226 // Inserts static source code into |source_map_|.
227 void PopulateSourceMap(); 227 void PopulateSourceMap();
228 228
229 // Returns whether the current renderer hosts a platform app. 229 // Returns whether the current renderer hosts a platform app.
230 bool IsWithinPlatformApp(); 230 bool IsWithinPlatformApp();
231 231
232 // Gets |field| from |object| or creates it as an empty object if it doesn't 232 // Gets |field| from |object| or creates it as an empty object if it doesn't
233 // exist. 233 // exist.
234 v8::Handle<v8::Object> GetOrCreateObject(const v8::Handle<v8::Object>& object, 234 v8::Local<v8::Object> GetOrCreateObject(const v8::Local<v8::Object>& object,
235 const std::string& field, 235 const std::string& field,
236 v8::Isolate* isolate); 236 v8::Isolate* isolate);
237 237
238 v8::Handle<v8::Object> GetOrCreateBindObjectIfAvailable( 238 v8::Local<v8::Object> GetOrCreateBindObjectIfAvailable(
239 const std::string& api_name, 239 const std::string& api_name,
240 std::string* bind_name, 240 std::string* bind_name,
241 ScriptContext* context); 241 ScriptContext* context);
242 242
243 // Requires the GuestView modules in the module system of the ScriptContext 243 // Requires the GuestView modules in the module system of the ScriptContext
244 // |context|. 244 // |context|.
245 void RequireGuestViewModules(ScriptContext* context); 245 void RequireGuestViewModules(ScriptContext* context);
246 246
247 // The delegate for this dispatcher. Not owned, but must extend beyond the 247 // The delegate for this dispatcher. Not owned, but must extend beyond the
248 // Dispatcher's own lifetime. 248 // Dispatcher's own lifetime.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 305
306 // Status of webrequest usage. 306 // Status of webrequest usage.
307 bool webrequest_used_; 307 bool webrequest_used_;
308 308
309 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 309 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
310 }; 310 };
311 311
312 } // namespace extensions 312 } // namespace extensions
313 313
314 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 314 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/console.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698