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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; | 109 void SiteInstanceDeleting(content::SiteInstance* site_instance) override; |
110 bool ShouldSwapBrowsingInstancesForNavigation( | 110 bool ShouldSwapBrowsingInstancesForNavigation( |
111 content::SiteInstance* site_instance, | 111 content::SiteInstance* site_instance, |
112 const GURL& current_url, | 112 const GURL& current_url, |
113 const GURL& new_url) override; | 113 const GURL& new_url) override; |
114 bool ShouldSwapProcessesForRedirect( | 114 bool ShouldSwapProcessesForRedirect( |
115 content::BrowserContext* browser_context, | 115 content::BrowserContext* browser_context, |
116 const GURL& current_url, | 116 const GURL& current_url, |
117 const GURL& new_url) override; | 117 const GURL& new_url) override; |
118 bool ShouldAssignSiteForURL(const GURL& url) override; | 118 bool ShouldAssignSiteForURL(const GURL& url) override; |
119 std::string GetCanonicalEncodingNameByAliasName( | |
120 const std::string& alias_name) override; | |
121 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, | 119 void AppendExtraCommandLineSwitches(base::CommandLine* command_line, |
122 int child_process_id) override; | 120 int child_process_id) override; |
123 std::string GetApplicationLocale() override; | 121 std::string GetApplicationLocale() override; |
124 std::string GetAcceptLangs(content::BrowserContext* context) override; | 122 std::string GetAcceptLangs(content::BrowserContext* context) override; |
125 const gfx::ImageSkia* GetDefaultFavicon() override; | 123 const gfx::ImageSkia* GetDefaultFavicon() override; |
126 bool IsDataSaverEnabled(content::BrowserContext* context) override; | 124 bool IsDataSaverEnabled(content::BrowserContext* context) override; |
127 bool AllowAppCache(const GURL& manifest_url, | 125 bool AllowAppCache(const GURL& manifest_url, |
128 const GURL& first_party, | 126 const GURL& first_party, |
129 content::ResourceContext* context) override; | 127 content::ResourceContext* context) override; |
130 bool AllowServiceWorker( | 128 bool AllowServiceWorker( |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 // Vector of additional ChromeContentBrowserClientParts. | 369 // Vector of additional ChromeContentBrowserClientParts. |
372 // Parts are deleted in the reverse order they are added. | 370 // Parts are deleted in the reverse order they are added. |
373 std::vector<ChromeContentBrowserClientParts*> extra_parts_; | 371 std::vector<ChromeContentBrowserClientParts*> extra_parts_; |
374 | 372 |
375 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; | 373 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; |
376 | 374 |
377 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 375 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
378 }; | 376 }; |
379 | 377 |
380 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 378 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |