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

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

Issue 2749303002: [reference - do not submit] Always create four pools in TaskSchedulerImpl. (Closed)
Patch Set: rebase 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
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 std::unique_ptr<content::MemoryCoordinatorDelegate> 318 std::unique_ptr<content::MemoryCoordinatorDelegate>
319 GetMemoryCoordinatorDelegate() override; 319 GetMemoryCoordinatorDelegate() override;
320 ::rappor::RapporService* GetRapporService() override; 320 ::rappor::RapporService* GetRapporService() override;
321 321
322 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 322 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
323 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, 323 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host,
324 media::mojom::RemotingSourcePtr source, 324 media::mojom::RemotingSourcePtr source,
325 media::mojom::RemoterRequest request) final; 325 media::mojom::RemoterRequest request) final;
326 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) 326 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING)
327 327
328 void GetTaskSchedulerInitializationParams( 328 std::unique_ptr<base::TaskSchedulerInitParams> GetTaskSchedulerInitParams()
329 std::vector<base::SchedulerWorkerPoolParams>* params_vector, 329 override;
330 base::TaskScheduler::WorkerPoolIndexForTraitsCallback*
331 index_to_traits_callback) override;
332 void PerformExperimentalTaskSchedulerRedirections() override; 330 void PerformExperimentalTaskSchedulerRedirections() override;
333 bool ShouldRedirectDOMStorageTaskRunner() override; 331 bool ShouldRedirectDOMStorageTaskRunner() override;
334 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override; 332 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override;
335 333
336 private: 334 private:
337 friend class DisableWebRtcEncryptionFlagTest; 335 friend class DisableWebRtcEncryptionFlagTest;
338 friend class InProcessBrowserTest; 336 friend class InProcessBrowserTest;
339 337
340 #if BUILDFLAG(ENABLE_WEBRTC) 338 #if BUILDFLAG(ENABLE_WEBRTC)
341 // Copies disable WebRTC encryption switch depending on the channel. 339 // Copies disable WebRTC encryption switch depending on the channel.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // Vector of additional ChromeContentBrowserClientParts. 382 // Vector of additional ChromeContentBrowserClientParts.
385 // Parts are deleted in the reverse order they are added. 383 // Parts are deleted in the reverse order they are added.
386 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 384 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
387 385
388 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 386 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
389 387
390 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 388 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
391 }; 389 };
392 390
393 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 391 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « base/threading/sequenced_worker_pool_unittest.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698