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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 2464233002: Experiment with redirecting all BrowserThreads (but UI/IO) to TaskScheduler (Closed)
Patch Set: remove WaitUntilThreadStarted on Android, makes Android test instrumentation hang, is previous issu… Created 4 years 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/browser/chrome_content_browser_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_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 317 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
318 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, 318 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host,
319 media::mojom::RemotingSourcePtr source, 319 media::mojom::RemotingSourcePtr source,
320 media::mojom::RemoterRequest request) final; 320 media::mojom::RemoterRequest request) final;
321 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) 321 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
322 322
323 void GetTaskSchedulerInitializationParams( 323 void GetTaskSchedulerInitializationParams(
324 std::vector<base::SchedulerWorkerPoolParams>* params_vector, 324 std::vector<base::SchedulerWorkerPoolParams>* params_vector,
325 base::TaskScheduler::WorkerPoolIndexForTraitsCallback* 325 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
326 index_to_traits_callback) override; 326 index_to_traits_callback) override;
327
328 void PerformExperimentalTaskSchedulerRedirections() override; 327 void PerformExperimentalTaskSchedulerRedirections() override;
328 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override;
329 329
330 private: 330 private:
331 friend class DisableWebRtcEncryptionFlagTest; 331 friend class DisableWebRtcEncryptionFlagTest;
332 friend class InProcessBrowserTest; 332 friend class InProcessBrowserTest;
333 333
334 #if BUILDFLAG(ENABLE_WEBRTC) 334 #if BUILDFLAG(ENABLE_WEBRTC)
335 // Copies disable WebRTC encryption switch depending on the channel. 335 // Copies disable WebRTC encryption switch depending on the channel.
336 static void MaybeCopyDisableWebRtcEncryptionSwitch( 336 static void MaybeCopyDisableWebRtcEncryptionSwitch(
337 base::CommandLine* to_command_line, 337 base::CommandLine* to_command_line,
338 const base::CommandLine& from_command_line, 338 const base::CommandLine& from_command_line,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Vector of additional ChromeContentBrowserClientParts. 378 // Vector of additional ChromeContentBrowserClientParts.
379 // Parts are deleted in the reverse order they are added. 379 // Parts are deleted in the reverse order they are added.
380 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 380 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
381 381
382 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 382 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
383 383
384 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 384 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
385 }; 385 };
386 386
387 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 387 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698