| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 46 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 47 const GURL& url) OVERRIDE; | 47 const GURL& url) OVERRIDE; |
| 48 virtual bool ShouldTryToUseExistingProcessHost( | 48 virtual bool ShouldTryToUseExistingProcessHost( |
| 49 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; | 49 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; |
| 50 virtual void SiteInstanceGotProcess( | 50 virtual void SiteInstanceGotProcess( |
| 51 content::SiteInstance* site_instance) OVERRIDE; | 51 content::SiteInstance* site_instance) OVERRIDE; |
| 52 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) | 52 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) |
| 53 OVERRIDE; | 53 OVERRIDE; |
| 54 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 54 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
| 55 const GURL& new_url) OVERRIDE; | 55 const GURL& new_url) OVERRIDE; |
| 56 virtual bool ShouldSwapProcessesForRedirect( |
| 57 content::ResourceContext* resource_context, |
| 58 const GURL& current_url, |
| 59 const GURL& new_url) OVERRIDE; |
| 56 virtual std::string GetCanonicalEncodingNameByAliasName( | 60 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 57 const std::string& alias_name) OVERRIDE; | 61 const std::string& alias_name) OVERRIDE; |
| 58 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 62 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
| 59 int child_process_id) OVERRIDE; | 63 int child_process_id) OVERRIDE; |
| 60 virtual std::string GetApplicationLocale() OVERRIDE; | 64 virtual std::string GetApplicationLocale() OVERRIDE; |
| 61 virtual std::string GetAcceptLangs( | 65 virtual std::string GetAcceptLangs( |
| 62 content::BrowserContext* context) OVERRIDE; | 66 content::BrowserContext* context) OVERRIDE; |
| 63 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; | 67 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; |
| 64 virtual bool AllowAppCache(const GURL& manifest_url, | 68 virtual bool AllowAppCache(const GURL& manifest_url, |
| 65 const GURL& first_party, | 69 const GURL& first_party, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 private: | 195 private: |
| 192 // Set of origins that can use TCP/UDP private APIs from NaCl. | 196 // Set of origins that can use TCP/UDP private APIs from NaCl. |
| 193 std::set<std::string> allowed_socket_origins_; | 197 std::set<std::string> allowed_socket_origins_; |
| 194 | 198 |
| 195 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 199 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 196 }; | 200 }; |
| 197 | 201 |
| 198 } // namespace chrome | 202 } // namespace chrome |
| 199 | 203 |
| 200 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 204 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |