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> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <utility> | 13 #include <utility> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
| 16 #include "base/callback.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
18 #include "build/build_config.h" | 19 #include "build/build_config.h" |
19 #include "content/public/browser/content_browser_client.h" | 20 #include "content/public/browser/content_browser_client.h" |
20 #include "extensions/features/features.h" | 21 #include "extensions/features/features.h" |
21 #include "media/media_features.h" | 22 #include "media/media_features.h" |
22 #include "ppapi/features/features.h" | 23 #include "ppapi/features/features.h" |
23 | 24 |
24 class ChromeContentBrowserClientParts; | 25 class ChromeContentBrowserClientParts; |
25 | 26 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 59 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
59 | 60 |
60 // Notification that the application locale has changed. This allows us to | 61 // Notification that the application locale has changed. This allows us to |
61 // update our I/O thread cache of this value. | 62 // update our I/O thread cache of this value. |
62 static void SetApplicationLocale(const std::string& locale); | 63 static void SetApplicationLocale(const std::string& locale); |
63 | 64 |
64 content::BrowserMainParts* CreateBrowserMainParts( | 65 content::BrowserMainParts* CreateBrowserMainParts( |
65 const content::MainFunctionParams& parameters) override; | 66 const content::MainFunctionParams& parameters) override; |
66 void PostAfterStartupTask(const tracked_objects::Location& from_here, | 67 void PostAfterStartupTask(const tracked_objects::Location& from_here, |
67 const scoped_refptr<base::TaskRunner>& task_runner, | 68 const scoped_refptr<base::TaskRunner>& task_runner, |
68 const base::Closure& task) override; | 69 base::Closure task) override; |
69 bool IsBrowserStartupComplete() override; | 70 bool IsBrowserStartupComplete() override; |
70 std::string GetStoragePartitionIdForSite( | 71 std::string GetStoragePartitionIdForSite( |
71 content::BrowserContext* browser_context, | 72 content::BrowserContext* browser_context, |
72 const GURL& site) override; | 73 const GURL& site) override; |
73 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, | 74 bool IsValidStoragePartitionId(content::BrowserContext* browser_context, |
74 const std::string& partition_id) override; | 75 const std::string& partition_id) override; |
75 void GetStoragePartitionConfigForSite( | 76 void GetStoragePartitionConfigForSite( |
76 content::BrowserContext* browser_context, | 77 content::BrowserContext* browser_context, |
77 const GURL& site, | 78 const GURL& site, |
78 bool can_be_default, | 79 bool can_be_default, |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // Vector of additional ChromeContentBrowserClientParts. | 385 // Vector of additional ChromeContentBrowserClientParts. |
385 // Parts are deleted in the reverse order they are added. | 386 // Parts are deleted in the reverse order they are added. |
386 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 387 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
387 | 388 |
388 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 389 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
389 | 390 |
390 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 391 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
391 }; | 392 }; |
392 | 393 |
393 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 394 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |