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