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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 years, 3 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
54 54
55 // Notification that the application locale has changed. This allows us to 55 // Notification that the application locale has changed. This allows us to
56 // update our I/O thread cache of this value. 56 // update our I/O thread cache of this value.
57 static void SetApplicationLocale(const std::string& locale); 57 static void SetApplicationLocale(const std::string& locale);
58 58
59 content::BrowserMainParts* CreateBrowserMainParts( 59 content::BrowserMainParts* CreateBrowserMainParts(
60 const content::MainFunctionParams& parameters) override; 60 const content::MainFunctionParams& parameters) override;
61 void PostAfterStartupTask(const tracked_objects::Location& from_here, 61 void PostAfterStartupTask(const tracked_objects::Location& from_here,
62 const scoped_refptr<base::TaskRunner>& task_runner, 62 const scoped_refptr<base::TaskRunner>& task_runner,
63 const base::Closure& task) override; 63 base::OnceClosure task) override;
64 bool IsBrowserStartupComplete() override; 64 bool IsBrowserStartupComplete() override;
65 std::string GetStoragePartitionIdForSite( 65 std::string GetStoragePartitionIdForSite(
66 content::BrowserContext* browser_context, 66 content::BrowserContext* browser_context,
67 const GURL& site) override; 67 const GURL& site) override;
68 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, 68 bool IsValidStoragePartitionId(content::BrowserContext* browser_context,
69 const std::string& partition_id) override; 69 const std::string& partition_id) override;
70 void GetStoragePartitionConfigForSite( 70 void GetStoragePartitionConfigForSite(
71 content::BrowserContext* browser_context, 71 content::BrowserContext* browser_context,
72 const GURL& site, 72 const GURL& site,
73 bool can_be_default, 73 bool can_be_default,
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 // Vector of additional ChromeContentBrowserClientParts. 355 // Vector of additional ChromeContentBrowserClientParts.
356 // Parts are deleted in the reverse order they are added. 356 // Parts are deleted in the reverse order they are added.
357 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 357 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
358 358
359 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 359 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
360 360
361 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 361 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
362 }; 362 };
363 363
364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/after_startup_task_utils_unittest.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698