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

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

Issue 2576243003: Add an experiment to redirect DOMStorageTaskRunner to TaskScheduler. (Closed)
Patch Set: fix compile 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void PerformExperimentalTaskSchedulerRedirections() override; 327 void PerformExperimentalTaskSchedulerRedirections() override;
328 bool ShouldRedirectDOMStorageTaskRunner() override;
328 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override; 329 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override;
329 330
330 private: 331 private:
331 friend class DisableWebRtcEncryptionFlagTest; 332 friend class DisableWebRtcEncryptionFlagTest;
332 friend class InProcessBrowserTest; 333 friend class InProcessBrowserTest;
333 334
334 #if BUILDFLAG(ENABLE_WEBRTC) 335 #if BUILDFLAG(ENABLE_WEBRTC)
335 // Copies disable WebRTC encryption switch depending on the channel. 336 // Copies disable WebRTC encryption switch depending on the channel.
336 static void MaybeCopyDisableWebRtcEncryptionSwitch( 337 static void MaybeCopyDisableWebRtcEncryptionSwitch(
337 base::CommandLine* to_command_line, 338 base::CommandLine* to_command_line,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Vector of additional ChromeContentBrowserClientParts. 379 // Vector of additional ChromeContentBrowserClientParts.
379 // Parts are deleted in the reverse order they are added. 380 // Parts are deleted in the reverse order they are added.
380 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 381 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
381 382
382 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 383 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
383 384
384 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 385 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
385 }; 386 };
386 387
387 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 388 #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