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

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

Issue 949293002: Implement a poor man's PostAfterStartupTask() function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ~ChromeContentBrowserClient() override; 47 ~ChromeContentBrowserClient() override;
48 48
49 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 49 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
50 50
51 // Notification that the application locale has changed. This allows us to 51 // Notification that the application locale has changed. This allows us to
52 // update our I/O thread cache of this value. 52 // update our I/O thread cache of this value.
53 static void SetApplicationLocale(const std::string& locale); 53 static void SetApplicationLocale(const std::string& locale);
54 54
55 content::BrowserMainParts* CreateBrowserMainParts( 55 content::BrowserMainParts* CreateBrowserMainParts(
56 const content::MainFunctionParams& parameters) override; 56 const content::MainFunctionParams& parameters) override;
57 void PostAfterStartupTask(
58 const tracked_objects::Location& from_here,
59 const scoped_refptr<base::TaskRunner>& task_runner,
60 const base::Closure& task) override;
57 std::string GetStoragePartitionIdForSite( 61 std::string GetStoragePartitionIdForSite(
58 content::BrowserContext* browser_context, 62 content::BrowserContext* browser_context,
59 const GURL& site) override; 63 const GURL& site) override;
60 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, 64 bool IsValidStoragePartitionId(content::BrowserContext* browser_context,
61 const std::string& partition_id) override; 65 const std::string& partition_id) override;
62 void GetStoragePartitionConfigForSite( 66 void GetStoragePartitionConfigForSite(
63 content::BrowserContext* browser_context, 67 content::BrowserContext* browser_context,
64 const GURL& site, 68 const GURL& site,
65 bool can_be_default, 69 bool can_be_default,
66 std::string* partition_domain, 70 std::string* partition_domain,
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 352 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
349 353
350 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 354 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
351 355
352 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 356 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
353 }; 357 };
354 358
355 } // namespace chrome 359 } // namespace chrome
356 360
357 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 361 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698