| 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 #include "content/shell/shell_content_client.h" | 5 #include "content/shell/shell_content_client.h" |
| 6 | 6 |
| 7 #include "base/string_piece.h" | 7 #include "base/string_piece.h" |
| 8 #include "ui/base/resource/resource_bundle.h" | 8 #include "ui/base/resource/resource_bundle.h" |
| 9 #include "webkit/glue/user_agent.h" | 9 #include "webkit/glue/user_agent.h" |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 bool ShellContentClient::HasWebUIScheme(const GURL& url) const { | 30 bool ShellContentClient::HasWebUIScheme(const GURL& url) const { |
| 31 // There are no WebUI URLs in content_shell. | 31 // There are no WebUI URLs in content_shell. |
| 32 return false; | 32 return false; |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { | 35 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { |
| 36 return false; | 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 std::string ShellContentClient::GetUserAgent(bool* overriding) const { | 39 std::string ShellContentClient::GetUserAgent() const { |
| 40 *overriding = false; | |
| 41 // The "19" is so that sites that sniff for version think that this is | 40 // The "19" is so that sites that sniff for version think that this is |
| 42 // something reasonably current; the "77.34.5" is a hint that this isn't a | 41 // something reasonably current; the "77.34.5" is a hint that this isn't a |
| 43 // standard Chrome. | 42 // standard Chrome. |
| 44 return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5"); | 43 return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5"); |
| 45 } | 44 } |
| 46 | 45 |
| 47 string16 ShellContentClient::GetLocalizedString(int message_id) const { | 46 string16 ShellContentClient::GetLocalizedString(int message_id) const { |
| 48 return string16(); | 47 return string16(); |
| 49 } | 48 } |
| 50 | 49 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 61 | 60 |
| 62 #if defined(OS_MACOSX) | 61 #if defined(OS_MACOSX) |
| 63 bool ShellContentClient::GetSandboxProfileForSandboxType( | 62 bool ShellContentClient::GetSandboxProfileForSandboxType( |
| 64 int sandbox_type, | 63 int sandbox_type, |
| 65 int* sandbox_profile_resource_id) const { | 64 int* sandbox_profile_resource_id) const { |
| 66 return false; | 65 return false; |
| 67 } | 66 } |
| 68 #endif | 67 #endif |
| 69 | 68 |
| 70 } // namespace content | 69 } // namespace content |
| OLD | NEW |