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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "chrome/common/chrome_version_info.h" | |
18 #include "content/public/browser/content_browser_client.h" | 17 #include "content/public/browser/content_browser_client.h" |
19 | 18 |
20 class ChromeContentBrowserClientParts; | 19 class ChromeContentBrowserClientParts; |
21 | 20 |
22 namespace base { | 21 namespace base { |
23 class CommandLine; | 22 class CommandLine; |
24 } | 23 } |
25 | 24 |
26 namespace content { | 25 namespace content { |
27 class QuotaPermissionContext; | 26 class QuotaPermissionContext; |
28 } | 27 } |
29 | 28 |
30 namespace extensions { | 29 namespace extensions { |
31 class BrowserPermissionsPolicyDelegate; | 30 class BrowserPermissionsPolicyDelegate; |
32 } | 31 } |
33 | 32 |
34 namespace user_prefs { | 33 namespace user_prefs { |
35 class PrefRegistrySyncable; | 34 class PrefRegistrySyncable; |
36 } | 35 } |
37 | 36 |
| 37 namespace version_info { |
| 38 enum class Channel; |
| 39 } |
| 40 |
38 namespace chrome { | 41 namespace chrome { |
39 | 42 |
40 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 43 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
41 public: | 44 public: |
42 ChromeContentBrowserClient(); | 45 ChromeContentBrowserClient(); |
43 ~ChromeContentBrowserClient() override; | 46 ~ChromeContentBrowserClient() override; |
44 | 47 |
45 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | 48 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
46 | 49 |
47 // Notification that the application locale has changed. This allows us to | 50 // Notification that the application locale has changed. This allows us to |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 329 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
327 | 330 |
328 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 331 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
329 | 332 |
330 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 333 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
331 }; | 334 }; |
332 | 335 |
333 } // namespace chrome | 336 } // namespace chrome |
334 | 337 |
335 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 338 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |