| OLD | NEW |
| 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 Loading... |
| 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 content::AfterStartupTaskPoster* GetAfterStartupTaskPoster() override; |
| 57 std::string GetStoragePartitionIdForSite( | 58 std::string GetStoragePartitionIdForSite( |
| 58 content::BrowserContext* browser_context, | 59 content::BrowserContext* browser_context, |
| 59 const GURL& site) override; | 60 const GURL& site) override; |
| 60 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, | 61 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, |
| 61 const std::string& partition_id) override; | 62 const std::string& partition_id) override; |
| 62 void GetStoragePartitionConfigForSite( | 63 void GetStoragePartitionConfigForSite( |
| 63 content::BrowserContext* browser_context, | 64 content::BrowserContext* browser_context, |
| 64 const GURL& site, | 65 const GURL& site, |
| 65 bool can_be_default, | 66 bool can_be_default, |
| 66 std::string* partition_domain, | 67 std::string* partition_domain, |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 349 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 349 | 350 |
| 350 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 351 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 351 | 352 |
| 352 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 353 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 353 }; | 354 }; |
| 354 | 355 |
| 355 } // namespace chrome | 356 } // namespace chrome |
| 356 | 357 |
| 357 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 358 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |