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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 2798623002: Use TaskScheduler::InitParams to initialize TaskScheduler in child processes. (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | chrome/renderer/chrome_content_renderer_client.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void DidInitializeServiceWorkerContextOnWorkerThread( 181 void DidInitializeServiceWorkerContextOnWorkerThread(
182 v8::Local<v8::Context> context, 182 v8::Local<v8::Context> context,
183 int64_t service_worker_version_id, 183 int64_t service_worker_version_id,
184 const GURL& url) override; 184 const GURL& url) override;
185 void WillDestroyServiceWorkerContextOnWorkerThread( 185 void WillDestroyServiceWorkerContextOnWorkerThread(
186 v8::Local<v8::Context> context, 186 v8::Local<v8::Context> context,
187 int64_t service_worker_version_id, 187 int64_t service_worker_version_id,
188 const GURL& url) override; 188 const GURL& url) override;
189 bool ShouldEnforceWebRTCRoutingPreferences() override; 189 bool ShouldEnforceWebRTCRoutingPreferences() override;
190 GURL OverrideFlashEmbedWithHTML(const GURL& url) override; 190 GURL OverrideFlashEmbedWithHTML(const GURL& url) override;
191 void GetTaskSchedulerInitializationParams( 191 std::unique_ptr<base::TaskScheduler::InitParams> GetTaskSchedulerInitParams()
192 std::vector<base::SchedulerWorkerPoolParams>* params_vector, 192 override;
193 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
194 index_to_traits_callback) override;
195 193
196 #if BUILDFLAG(ENABLE_SPELLCHECK) 194 #if BUILDFLAG(ENABLE_SPELLCHECK)
197 // Sets a new |spellcheck|. Used for testing only. 195 // Sets a new |spellcheck|. Used for testing only.
198 // Takes ownership of |spellcheck|. 196 // Takes ownership of |spellcheck|.
199 void SetSpellcheck(SpellCheck* spellcheck); 197 void SetSpellcheck(SpellCheck* spellcheck);
200 #endif 198 #endif
201 199
202 #if BUILDFLAG(ENABLE_PLUGINS) 200 #if BUILDFLAG(ENABLE_PLUGINS)
203 static blink::WebPlugin* CreatePlugin( 201 static blink::WebPlugin* CreatePlugin(
204 content::RenderFrame* render_frame, 202 content::RenderFrame* render_frame,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Observes module load and unload events and notifies the ModuleDatabase in 266 // Observes module load and unload events and notifies the ModuleDatabase in
269 // the browser process. 267 // the browser process.
270 std::unique_ptr<ModuleWatcher> module_watcher_; 268 std::unique_ptr<ModuleWatcher> module_watcher_;
271 mojom::ModuleEventSinkPtr module_event_sink_; 269 mojom::ModuleEventSinkPtr module_event_sink_;
272 #endif 270 #endif
273 271
274 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); 272 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient);
275 }; 273 };
276 274
277 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 275 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698