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 18 matching lines...) Expand all Loading... |
29 class PrefRegistrySyncable; | 29 class PrefRegistrySyncable; |
30 } | 30 } |
31 | 31 |
32 namespace chrome { | 32 namespace chrome { |
33 | 33 |
34 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 34 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
35 public: | 35 public: |
36 ChromeContentBrowserClient(); | 36 ChromeContentBrowserClient(); |
37 virtual ~ChromeContentBrowserClient(); | 37 virtual ~ChromeContentBrowserClient(); |
38 | 38 |
39 static void RegisterUserPrefs(user_prefs::PrefRegistrySyncable* registry); | 39 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
40 | 40 |
41 // Notification that the application locale has changed. This allows us to | 41 // Notification that the application locale has changed. This allows us to |
42 // update our I/O thread cache of this value. | 42 // update our I/O thread cache of this value. |
43 static void SetApplicationLocale(const std::string& locale); | 43 static void SetApplicationLocale(const std::string& locale); |
44 | 44 |
45 virtual content::BrowserMainParts* CreateBrowserMainParts( | 45 virtual content::BrowserMainParts* CreateBrowserMainParts( |
46 const content::MainFunctionParams& parameters) OVERRIDE; | 46 const content::MainFunctionParams& parameters) OVERRIDE; |
47 virtual std::string GetStoragePartitionIdForSite( | 47 virtual std::string GetStoragePartitionIdForSite( |
48 content::BrowserContext* browser_context, | 48 content::BrowserContext* browser_context, |
49 const GURL& site) OVERRIDE; | 49 const GURL& site) OVERRIDE; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 #endif | 273 #endif |
274 scoped_ptr<extensions::BrowserPermissionsPolicyDelegate> | 274 scoped_ptr<extensions::BrowserPermissionsPolicyDelegate> |
275 permissions_policy_delegate_; | 275 permissions_policy_delegate_; |
276 | 276 |
277 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 277 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
278 }; | 278 }; |
279 | 279 |
280 } // namespace chrome | 280 } // namespace chrome |
281 | 281 |
282 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 282 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |