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

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: Hold the lock while starting!!! 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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 // 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
792 // embedder, for the |source| that lives in the render frame represented 792 // embedder, for the |source| that lives in the render frame represented
793 // 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
794 // than one source candidate in the same render frame. 794 // than one source candidate in the same render frame.
795 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, 795 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host,
796 media::mojom::RemotingSourcePtr source, 796 media::mojom::RemotingSourcePtr source,
797 media::mojom::RemoterRequest request) {} 797 media::mojom::RemoterRequest request) {}
798 798
799 // Returns the RapporService from the browser process. 799 // Returns the RapporService from the browser process.
800 virtual ::rappor::RapporService* GetRapporService(); 800 virtual ::rappor::RapporService* GetRapporService();
801
802 // If this returns true, all BrowserThreads (but UI/IO) that support it on
803 // this platform will experimentally be redirected to TaskScheduler.
804 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
801 }; 805 };
802 806
803 } // namespace content 807 } // namespace content
804 808
805 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 809 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698