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

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

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase without dcheck_in_ref_count 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 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 59 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
60 60
61 // Notification that the application locale has changed. This allows us to 61 // Notification that the application locale has changed. This allows us to
62 // update our I/O thread cache of this value. 62 // update our I/O thread cache of this value.
63 static void SetApplicationLocale(const std::string& locale); 63 static void SetApplicationLocale(const std::string& locale);
64 64
65 content::BrowserMainParts* CreateBrowserMainParts( 65 content::BrowserMainParts* CreateBrowserMainParts(
66 const content::MainFunctionParams& parameters) override; 66 const content::MainFunctionParams& parameters) override;
67 void PostAfterStartupTask(const tracked_objects::Location& from_here, 67 void PostAfterStartupTask(const tracked_objects::Location& from_here,
68 const scoped_refptr<base::TaskRunner>& task_runner, 68 const scoped_refptr<base::TaskRunner>& task_runner,
69 base::Closure task) override; 69 base::OnceClosure task) override;
70 bool IsBrowserStartupComplete() override; 70 bool IsBrowserStartupComplete() override;
71 std::string GetStoragePartitionIdForSite( 71 std::string GetStoragePartitionIdForSite(
72 content::BrowserContext* browser_context, 72 content::BrowserContext* browser_context,
73 const GURL& site) override; 73 const GURL& site) override;
74 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, 74 bool IsValidStoragePartitionId(content::BrowserContext* browser_context,
75 const std::string& partition_id) override; 75 const std::string& partition_id) override;
76 void GetStoragePartitionConfigForSite( 76 void GetStoragePartitionConfigForSite(
77 content::BrowserContext* browser_context, 77 content::BrowserContext* browser_context,
78 const GURL& site, 78 const GURL& site,
79 bool can_be_default, 79 bool can_be_default,
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 // Vector of additional ChromeContentBrowserClientParts. 385 // Vector of additional ChromeContentBrowserClientParts.
386 // Parts are deleted in the reverse order they are added. 386 // Parts are deleted in the reverse order they are added.
387 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 387 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
388 388
389 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 389 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
390 390
391 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 391 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
392 }; 392 };
393 393
394 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 394 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698