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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 53 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
54 | 54 |
55 // Notification that the application locale has changed. This allows us to | 55 // Notification that the application locale has changed. This allows us to |
56 // update our I/O thread cache of this value. | 56 // update our I/O thread cache of this value. |
57 static void SetApplicationLocale(const std::string& locale); | 57 static void SetApplicationLocale(const std::string& locale); |
58 | 58 |
59 content::BrowserMainParts* CreateBrowserMainParts( | 59 content::BrowserMainParts* CreateBrowserMainParts( |
60 const content::MainFunctionParams& parameters) override; | 60 const content::MainFunctionParams& parameters) override; |
61 void PostAfterStartupTask(const tracked_objects::Location& from_here, | 61 void PostAfterStartupTask(const tracked_objects::Location& from_here, |
62 const scoped_refptr<base::TaskRunner>& task_runner, | 62 const scoped_refptr<base::TaskRunner>& task_runner, |
63 const base::Closure& task) override; | 63 base::OnceClosure task) override; |
64 bool IsBrowserStartupComplete() override; | 64 bool IsBrowserStartupComplete() override; |
65 std::string GetStoragePartitionIdForSite( | 65 std::string GetStoragePartitionIdForSite( |
66 content::BrowserContext* browser_context, | 66 content::BrowserContext* browser_context, |
67 const GURL& site) override; | 67 const GURL& site) override; |
68 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, | 68 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, |
69 const std::string& partition_id) override; | 69 const std::string& partition_id) override; |
70 void GetStoragePartitionConfigForSite( | 70 void GetStoragePartitionConfigForSite( |
71 content::BrowserContext* browser_context, | 71 content::BrowserContext* browser_context, |
72 const GURL& site, | 72 const GURL& site, |
73 bool can_be_default, | 73 bool can_be_default, |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 // Vector of additional ChromeContentBrowserClientParts. | 355 // Vector of additional ChromeContentBrowserClientParts. |
356 // Parts are deleted in the reverse order they are added. | 356 // Parts are deleted in the reverse order they are added. |
357 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 357 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
358 | 358 |
359 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 359 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
360 | 360 |
361 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 361 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
362 }; | 362 }; |
363 | 363 |
364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 364 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |