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.cc

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: erase Closure* 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/child/worker_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include <utility>
8
7 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
8 #include "base/guid.h" 10 #include "base/guid.h"
9 #include "base/logging.h" 11 #include "base/logging.h"
10 #include "build/build_config.h" 12 #include "build/build_config.h"
11 #include "content/public/browser/client_certificate_delegate.h" 13 #include "content/public/browser/client_certificate_delegate.h"
12 #include "content/public/browser/memory_coordinator_delegate.h" 14 #include "content/public/browser/memory_coordinator_delegate.h"
13 #include "content/public/browser/navigation_ui_data.h" 15 #include "content/public/browser/navigation_ui_data.h"
14 #include "content/public/browser/vpn_service_proxy.h" 16 #include "content/public/browser/vpn_service_proxy.h"
15 #include "content/public/common/sandbox_type.h" 17 #include "content/public/common/sandbox_type.h"
16 #include "media/base/cdm_factory.h" 18 #include "media/base/cdm_factory.h"
17 #include "media/media_features.h" 19 #include "media/media_features.h"
18 #include "storage/browser/quota/quota_manager.h" 20 #include "storage/browser/quota/quota_manager.h"
19 #include "ui/gfx/image/image_skia.h" 21 #include "ui/gfx/image/image_skia.h"
20 #include "url/gurl.h" 22 #include "url/gurl.h"
21 23
22 namespace content { 24 namespace content {
23 25
24 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( 26 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts(
25 const MainFunctionParams& parameters) { 27 const MainFunctionParams& parameters) {
26 return nullptr; 28 return nullptr;
27 } 29 }
28 30
29 void ContentBrowserClient::PostAfterStartupTask( 31 void ContentBrowserClient::PostAfterStartupTask(
30 const tracked_objects::Location& from_here, 32 const tracked_objects::Location& from_here,
31 const scoped_refptr<base::TaskRunner>& task_runner, 33 const scoped_refptr<base::TaskRunner>& task_runner,
32 const base::Closure& task) { 34 base::Closure task) {
33 task_runner->PostTask(from_here, task); 35 task_runner->PostTask(from_here, std::move(task));
34 } 36 }
35 37
36 bool ContentBrowserClient::IsBrowserStartupComplete() { 38 bool ContentBrowserClient::IsBrowserStartupComplete() {
37 return true; 39 return true;
38 } 40 }
39 41
40 WebContentsViewDelegate* ContentBrowserClient::GetWebContentsViewDelegate( 42 WebContentsViewDelegate* ContentBrowserClient::GetWebContentsViewDelegate(
41 WebContents* web_contents) { 43 WebContents* web_contents) {
42 return nullptr; 44 return nullptr;
43 } 45 }
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 450
449 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() { 451 bool ContentBrowserClient::ShouldRedirectDOMStorageTaskRunner() {
450 return false; 452 return false;
451 } 453 }
452 454
453 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() { 455 bool ContentBrowserClient::RedirectNonUINonIOBrowserThreadsToTaskScheduler() {
454 return false; 456 return false;
455 } 457 }
456 458
457 } // namespace content 459 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/child/worker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698