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

Side by Side Diff: content/public/browser/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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 // Returns the AppContainer SID for the specified sandboxed process type, or 762 // Returns the AppContainer SID for the specified sandboxed process type, or
763 // empty string if this sandboxed process type does not support living inside 763 // empty string if this sandboxed process type does not support living inside
764 // an AppContainer. 764 // an AppContainer.
765 virtual base::string16 GetAppContainerSidForSandboxType( 765 virtual base::string16 GetAppContainerSidForSandboxType(
766 int sandbox_type) const; 766 int sandbox_type) const;
767 #endif 767 #endif
768 768
769 // Returns an instance of MemoryCoordinatorDelegate. 769 // Returns an instance of MemoryCoordinatorDelegate.
770 virtual std::unique_ptr<MemoryCoordinatorDelegate> 770 virtual std::unique_ptr<MemoryCoordinatorDelegate>
771 GetMemoryCoordinatorDelegate(); 771 GetMemoryCoordinatorDelegate();
772
773 // If this returns true, all BrowserThreads (but UI/IO) that support it on
774 // this platform will experimentally be redirected to TaskScheduler.
775 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
772 }; 776 };
773 777
774 } // namespace content 778 } // namespace content
775 779
776 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698