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

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

Issue 2539263003: Move Task Scheduler Initialization From chrome/browser to Content (Closed)
Patch Set: Rebase to bf8e2f1 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 | « chrome/browser/chrome_browser_main.cc ('k') | 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 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 std::unique_ptr<content::MemoryCoordinatorDelegate> 310 std::unique_ptr<content::MemoryCoordinatorDelegate>
311 GetMemoryCoordinatorDelegate() override; 311 GetMemoryCoordinatorDelegate() override;
312 ::rappor::RapporService* GetRapporService() override; 312 ::rappor::RapporService* GetRapporService() override;
313 313
314 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 314 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
315 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, 315 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host,
316 media::mojom::RemotingSourcePtr source, 316 media::mojom::RemotingSourcePtr source,
317 media::mojom::RemoterRequest request) final; 317 media::mojom::RemoterRequest request) final;
318 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) 318 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
319 319
320 void GetTaskSchedulerInitializationParams(
321 std::vector<base::SchedulerWorkerPoolParams>* params_vector,
322 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
323 index_to_traits_callback) override;
324
325 void PerformExperimentalTaskSchedulerRedirections() override;
326
320 private: 327 private:
321 friend class DisableWebRtcEncryptionFlagTest; 328 friend class DisableWebRtcEncryptionFlagTest;
322 329
323 #if BUILDFLAG(ENABLE_WEBRTC) 330 #if BUILDFLAG(ENABLE_WEBRTC)
324 // Copies disable WebRTC encryption switch depending on the channel. 331 // Copies disable WebRTC encryption switch depending on the channel.
325 static void MaybeCopyDisableWebRtcEncryptionSwitch( 332 static void MaybeCopyDisableWebRtcEncryptionSwitch(
326 base::CommandLine* to_command_line, 333 base::CommandLine* to_command_line,
327 const base::CommandLine& from_command_line, 334 const base::CommandLine& from_command_line,
328 version_info::Channel channel); 335 version_info::Channel channel);
329 #endif 336 #endif
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // Vector of additional ChromeContentBrowserClientParts. 369 // Vector of additional ChromeContentBrowserClientParts.
363 // Parts are deleted in the reverse order they are added. 370 // Parts are deleted in the reverse order they are added.
364 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 371 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
365 372
366 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 373 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
367 374
368 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 375 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
369 }; 376 };
370 377
371 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 378 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698