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

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

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: comments addressed Created 3 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 | « extensions/common/switches.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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 int64_t service_worker_version_id, 106 int64_t service_worker_version_id,
107 const GURL& url); 107 const GURL& url);
108 108
109 // This method is not allowed to run JavaScript code in the frame. 109 // This method is not allowed to run JavaScript code in the frame.
110 void DidCreateDocumentElement(blink::WebLocalFrame* frame); 110 void DidCreateDocumentElement(blink::WebLocalFrame* frame);
111 111
112 // These methods may run (untrusted) JavaScript code in the frame, and 112 // These methods may run (untrusted) JavaScript code in the frame, and
113 // cause |render_frame| to become invalid. 113 // cause |render_frame| to become invalid.
114 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame); 114 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame);
115 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame); 115 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame);
116 void RunScriptsAtDocumentIdle(content::RenderFrame* render_frame);
116 117
117 void OnExtensionResponse(int request_id, 118 void OnExtensionResponse(int request_id,
118 bool success, 119 bool success,
119 const base::ListValue& response, 120 const base::ListValue& response,
120 const std::string& error); 121 const std::string& error);
121 122
122 // Dispatches the event named |event_name| to all render views. 123 // Dispatches the event named |event_name| to all render views.
123 void DispatchEvent(const std::string& extension_id, 124 void DispatchEvent(const std::string& extension_id,
124 const std::string& event_name, 125 const std::string& event_name,
125 const base::ListValue& event_args, 126 const base::ListValue& event_args,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // if this renderer is a WebView guest render process. Otherwise, this will be 290 // if this renderer is a WebView guest render process. Otherwise, this will be
290 // empty. 291 // empty.
291 std::string webview_partition_id_; 292 std::string webview_partition_id_;
292 293
293 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 294 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
294 }; 295 };
295 296
296 } // namespace extensions 297 } // namespace extensions
297 298
298 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 299 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « extensions/common/switches.cc ('k') | extensions/renderer/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698