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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 months 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const MainFunctionParams& parameters); 153 const MainFunctionParams& parameters);
154 154
155 // Allows the embedder to change the default behavior of 155 // Allows the embedder to change the default behavior of
156 // BrowserThread::PostAfterStartupTask to better match whatever 156 // BrowserThread::PostAfterStartupTask to better match whatever
157 // definition of "startup" the embedder has in mind. This may be 157 // definition of "startup" the embedder has in mind. This may be
158 // called on any thread. 158 // called on any thread.
159 // Note: see related BrowserThread::PostAfterStartupTask. 159 // Note: see related BrowserThread::PostAfterStartupTask.
160 virtual void PostAfterStartupTask( 160 virtual void PostAfterStartupTask(
161 const tracked_objects::Location& from_here, 161 const tracked_objects::Location& from_here,
162 const scoped_refptr<base::TaskRunner>& task_runner, 162 const scoped_refptr<base::TaskRunner>& task_runner,
163 base::Closure task); 163 base::OnceClosure task);
164 164
165 // Allows the embedder to indicate whether it considers startup to be 165 // Allows the embedder to indicate whether it considers startup to be
166 // complete. May be called on any thread. This should be called on a one-off 166 // complete. May be called on any thread. This should be called on a one-off
167 // basis; if you need to poll this function constantly, use the above 167 // basis; if you need to poll this function constantly, use the above
168 // PostAfterStartupTask() API instead. 168 // PostAfterStartupTask() API instead.
169 virtual bool IsBrowserStartupComplete(); 169 virtual bool IsBrowserStartupComplete();
170 170
171 // If content creates the WebContentsView implementation, it will ask the 171 // If content creates the WebContentsView implementation, it will ask the
172 // embedder to return an (optional) delegate to customize it. The view will 172 // embedder to return an (optional) delegate to customize it. The view will
173 // own the delegate. 173 // own the delegate.
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 virtual bool ShouldRedirectDOMStorageTaskRunner(); 827 virtual bool ShouldRedirectDOMStorageTaskRunner();
828 828
829 // If this returns true, all BrowserThreads (but UI/IO) that support it on 829 // If this returns true, all BrowserThreads (but UI/IO) that support it on
830 // this platform will experimentally be redirected to TaskScheduler. 830 // this platform will experimentally be redirected to TaskScheduler.
831 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 831 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
832 }; 832 };
833 833
834 } // namespace content 834 } // namespace content
835 835
836 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 836 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_thread.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698