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

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: rm TODO 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
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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 // empty string if this sandboxed process type does not support living inside 777 // empty string if this sandboxed process type does not support living inside
778 // an AppContainer. 778 // an AppContainer.
779 virtual base::string16 GetAppContainerSidForSandboxType( 779 virtual base::string16 GetAppContainerSidForSandboxType(
780 int sandbox_type) const; 780 int sandbox_type) const;
781 #endif 781 #endif
782 782
783 // Returns an instance of MemoryCoordinatorDelegate. 783 // Returns an instance of MemoryCoordinatorDelegate.
784 virtual std::unique_ptr<MemoryCoordinatorDelegate> 784 virtual std::unique_ptr<MemoryCoordinatorDelegate>
785 GetMemoryCoordinatorDelegate(); 785 GetMemoryCoordinatorDelegate();
786 786
787 // If this returns true, all BrowserThreads (but UI/IO) that support it on
788 // this platform will experimentally be redirected to TaskScheduler.
789 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
790
787 // Binds a new media remoter service to |request|, if supported by the 791 // Binds a new media remoter service to |request|, if supported by the
788 // embedder, for the |source| that lives in the render frame represented 792 // embedder, for the |source| that lives in the render frame represented
789 // by |render_frame_host|. This may be called multiple times if there is more 793 // by |render_frame_host|. This may be called multiple times if there is more
790 // than one source candidate in the same render frame. 794 // than one source candidate in the same render frame.
791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 795 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
792 media::mojom::RemotingSourcePtr source, 796 media::mojom::RemotingSourcePtr source,
793 media::mojom::RemoterRequest request) {} 797 media::mojom::RemoterRequest request) {}
794 }; 798 };
795 799
796 } // namespace content 800 } // namespace content
797 801
798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 802 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698