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

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: Rely on Thread::using_external_message_loop_ instead of hard-coding BrowserThread::UI Created 4 years, 1 month 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 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 content::PresentationServiceDelegate* GetPresentationServiceDelegate( 299 content::PresentationServiceDelegate* GetPresentationServiceDelegate(
300 content::WebContents* web_contents) override; 300 content::WebContents* web_contents) override;
301 301
302 void RecordURLMetric(const std::string& metric, const GURL& url) override; 302 void RecordURLMetric(const std::string& metric, const GURL& url) override;
303 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( 303 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation(
304 content::NavigationHandle* handle) override; 304 content::NavigationHandle* handle) override;
305 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( 305 std::unique_ptr<content::NavigationUIData> GetNavigationUIData(
306 content::NavigationHandle* navigation_handle) override; 306 content::NavigationHandle* navigation_handle) override;
307 std::unique_ptr<content::MemoryCoordinatorDelegate> 307 std::unique_ptr<content::MemoryCoordinatorDelegate>
308 GetMemoryCoordinatorDelegate() override; 308 GetMemoryCoordinatorDelegate() override;
309 bool RedirectNonUINonIOBrowserThreadsToTaskScheduler() override;
309 310
310 private: 311 private:
311 friend class DisableWebRtcEncryptionFlagTest; 312 friend class DisableWebRtcEncryptionFlagTest;
312 313
313 #if defined(ENABLE_WEBRTC) 314 #if defined(ENABLE_WEBRTC)
314 // Copies disable WebRTC encryption switch depending on the channel. 315 // Copies disable WebRTC encryption switch depending on the channel.
315 static void MaybeCopyDisableWebRtcEncryptionSwitch( 316 static void MaybeCopyDisableWebRtcEncryptionSwitch(
316 base::CommandLine* to_command_line, 317 base::CommandLine* to_command_line,
317 const base::CommandLine& from_command_line, 318 const base::CommandLine& from_command_line,
318 version_info::Channel channel); 319 version_info::Channel channel);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 // Vector of additional ChromeContentBrowserClientParts. 353 // Vector of additional ChromeContentBrowserClientParts.
353 // Parts are deleted in the reverse order they are added. 354 // Parts are deleted in the reverse order they are added.
354 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 355 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
355 356
356 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 357 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
357 358
358 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 359 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
359 }; 360 };
360 361
361 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 362 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698