| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ~ChromeContentBrowserClient() override; | 43 ~ChromeContentBrowserClient() override; |
| 44 | 44 |
| 45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
| 46 | 46 |
| 47 // Notification that the application locale has changed. This allows us to | 47 // Notification that the application locale has changed. This allows us to |
| 48 // update our I/O thread cache of this value. | 48 // update our I/O thread cache of this value. |
| 49 static void SetApplicationLocale(const std::string& locale); | 49 static void SetApplicationLocale(const std::string& locale); |
| 50 | 50 |
| 51 content::BrowserMainParts* CreateBrowserMainParts( | 51 content::BrowserMainParts* CreateBrowserMainParts( |
| 52 const content::MainFunctionParams& parameters) override; | 52 const content::MainFunctionParams& parameters) override; |
| 53 void PostAfterStartupTask( |
| 54 const tracked_objects::Location& from_here, |
| 55 const scoped_refptr<base::TaskRunner>& task_runner, |
| 56 const base::Closure& task) override; |
| 53 std::string GetStoragePartitionIdForSite( | 57 std::string GetStoragePartitionIdForSite( |
| 54 content::BrowserContext* browser_context, | 58 content::BrowserContext* browser_context, |
| 55 const GURL& site) override; | 59 const GURL& site) override; |
| 56 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, | 60 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, |
| 57 const std::string& partition_id) override; | 61 const std::string& partition_id) override; |
| 58 void GetStoragePartitionConfigForSite( | 62 void GetStoragePartitionConfigForSite( |
| 59 content::BrowserContext* browser_context, | 63 content::BrowserContext* browser_context, |
| 60 const GURL& site, | 64 const GURL& site, |
| 61 bool can_be_default, | 65 bool can_be_default, |
| 62 std::string* partition_domain, | 66 std::string* partition_domain, |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 338 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 335 | 339 |
| 336 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 340 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 337 | 341 |
| 338 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 342 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 339 }; | 343 }; |
| 340 | 344 |
| 341 } // namespace chrome | 345 } // namespace chrome |
| 342 | 346 |
| 343 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 347 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |