OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "content/shell/shell_content_browser_client.h" | 5 #include "content/shell/shell_content_browser_client.h" |
6 | 6 |
7 #include "base/file_path.h" | 7 #include "base/file_path.h" |
8 #include "content/browser/webui/empty_web_ui_factory.h" | 8 #include "content/browser/webui/empty_web_ui_factory.h" |
9 #include "content/shell/shell.h" | 9 #include "content/shell/shell.h" |
10 #include "content/shell/shell_browser_main.h" | 10 #include "content/shell/shell_browser_main.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 bool ShellContentBrowserClient::ShouldUseProcessPerSite( | 70 bool ShellContentBrowserClient::ShouldUseProcessPerSite( |
71 BrowserContext* browser_context, const GURL& effective_url) { | 71 BrowserContext* browser_context, const GURL& effective_url) { |
72 return false; | 72 return false; |
73 } | 73 } |
74 | 74 |
75 bool ShellContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { | 75 bool ShellContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { |
76 return false; | 76 return false; |
77 } | 77 } |
78 | 78 |
| 79 bool ShellContentBrowserClient::IsSuitableHost( |
| 80 RenderProcessHost* process_host, |
| 81 const GURL& site_url) { |
| 82 return true; |
| 83 } |
| 84 |
79 std::string ShellContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 85 std::string ShellContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
80 const std::string& alias_name) { | 86 const std::string& alias_name) { |
81 return std::string(); | 87 return std::string(); |
82 } | 88 } |
83 | 89 |
84 void ShellContentBrowserClient::AppendExtraCommandLineSwitches( | 90 void ShellContentBrowserClient::AppendExtraCommandLineSwitches( |
85 CommandLine* command_line, int child_process_id) { | 91 CommandLine* command_line, int child_process_id) { |
86 } | 92 } |
87 | 93 |
88 std::string ShellContentBrowserClient::GetApplicationLocale() { | 94 std::string ShellContentBrowserClient::GetApplicationLocale() { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 tab_contents_view->tab_contents()->browser_context(), | 310 tab_contents_view->tab_contents()->browser_context(), |
305 GURL(), | 311 GURL(), |
306 tab_contents_view->tab_contents()->GetSiteInstance(), | 312 tab_contents_view->tab_contents()->GetSiteInstance(), |
307 route_id, | 313 route_id, |
308 tab_contents_view->tab_contents()); | 314 tab_contents_view->tab_contents()); |
309 return shell->tab_contents(); | 315 return shell->tab_contents(); |
310 } | 316 } |
311 #endif | 317 #endif |
312 | 318 |
313 } // namespace content | 319 } // namespace content |
OLD | NEW |