| 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 <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <utility> | 12 #include <utility> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "build/build_config.h" | 18 #include "build/build_config.h" |
| 19 #include "content/public/browser/content_browser_client.h" | 19 #include "content/public/browser/content_browser_client.h" |
| 20 | 20 |
| 21 class ChromeContentBrowserClientParts; | 21 class ChromeContentBrowserClientParts; |
| 22 | 22 |
| 23 namespace base { | 23 namespace base { |
| 24 class CommandLine; | 24 class CommandLine; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 class BrowserContext; |
| 28 class QuotaPermissionContext; | 29 class QuotaPermissionContext; |
| 29 } | 30 } |
| 30 | 31 |
| 31 namespace extensions { | 32 namespace extensions { |
| 32 class BrowserPermissionsPolicyDelegate; | 33 class BrowserPermissionsPolicyDelegate; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace user_prefs { | 36 namespace user_prefs { |
| 36 class PrefRegistrySyncable; | 37 class PrefRegistrySyncable; |
| 37 } | 38 } |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 const GURL& current_url, | 120 const GURL& current_url, |
| 120 const GURL& new_url) override; | 121 const GURL& new_url) override; |
| 121 bool ShouldAssignSiteForURL(const GURL& url) override; | 122 bool ShouldAssignSiteForURL(const GURL& url) override; |
| 122 std::string GetCanonicalEncodingNameByAliasName( | 123 std::string GetCanonicalEncodingNameByAliasName( |
| 123 const std::string& alias_name) override; | 124 const std::string& alias_name) override; |
| 124 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 125 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
| 125 int child_process_id) override; | 126 int child_process_id) override; |
| 126 std::string GetApplicationLocale() override; | 127 std::string GetApplicationLocale() override; |
| 127 std::string GetAcceptLangs(content::BrowserContext* context) override; | 128 std::string GetAcceptLangs(content::BrowserContext* context) override; |
| 128 const gfx::ImageSkia* GetDefaultFavicon() override; | 129 const gfx::ImageSkia* GetDefaultFavicon() override; |
| 130 bool IsDataSaverEnabled(content::BrowserContext* context) override; |
| 129 bool AllowAppCache(const GURL& manifest_url, | 131 bool AllowAppCache(const GURL& manifest_url, |
| 130 const GURL& first_party, | 132 const GURL& first_party, |
| 131 content::ResourceContext* context) override; | 133 content::ResourceContext* context) override; |
| 132 bool AllowServiceWorker(const GURL& scope, | 134 bool AllowServiceWorker(const GURL& scope, |
| 133 const GURL& first_party, | 135 const GURL& first_party, |
| 134 content::ResourceContext* context, | 136 content::ResourceContext* context, |
| 135 int render_process_id, | 137 int render_process_id, |
| 136 int render_frame_id) override; | 138 int render_frame_id) override; |
| 137 bool AllowGetCookie(const GURL& url, | 139 bool AllowGetCookie(const GURL& url, |
| 138 const GURL& first_party, | 140 const GURL& first_party, |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 // Vector of additional ChromeContentBrowserClientParts. | 346 // Vector of additional ChromeContentBrowserClientParts. |
| 345 // Parts are deleted in the reverse order they are added. | 347 // Parts are deleted in the reverse order they are added. |
| 346 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 348 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
| 347 | 349 |
| 348 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 350 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
| 349 | 351 |
| 350 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 352 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 351 }; | 353 }; |
| 352 | 354 |
| 353 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 355 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |