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

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

Issue 1256323008: [Extension ServiceWorkers] Chrome: Passing v8::context to extensions dispatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Runs on a different thread and should not use any member variables.
99 static void DidInitializeServiceWorkerContextOnWorkerThread(
100 v8::Local<v8::Context> context,
101 const GURL& url);
102
98 void WillReleaseScriptContext(blink::WebLocalFrame* frame, 103 void WillReleaseScriptContext(blink::WebLocalFrame* frame,
99 const v8::Local<v8::Context>& context, 104 const v8::Local<v8::Context>& context,
100 int world_id); 105 int world_id);
101 106
102 void DidCreateDocumentElement(blink::WebLocalFrame* frame); 107 void DidCreateDocumentElement(blink::WebLocalFrame* frame);
103 108
104 void OnExtensionResponse(int request_id, 109 void OnExtensionResponse(int request_id,
105 bool success, 110 bool success,
106 const base::ListValue& response, 111 const base::ListValue& response,
107 const std::string& error); 112 const std::string& error);
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 315
311 // Status of webrequest usage. 316 // Status of webrequest usage.
312 bool webrequest_used_; 317 bool webrequest_used_;
313 318
314 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 319 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
315 }; 320 };
316 321
317 } // namespace extensions 322 } // namespace extensions
318 323
319 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 324 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/service_worker/service_worker_context_client.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698