| 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_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 "webkit/glue/user_agent.h" | 8 #include "webkit/glue/user_agent.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| 11 | 11 |
| 12 ShellContentClient::~ShellContentClient() { | 12 ShellContentClient::~ShellContentClient() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 void ShellContentClient::SetActiveURL(const GURL& url) { | 15 void ShellContentClient::SetActiveURL(const GURL& url) { |
| 16 } | 16 } |
| 17 | 17 |
| 18 void ShellContentClient::SetGpuInfo(const GPUInfo& gpu_info) { | 18 void ShellContentClient::SetGpuInfo(const GPUInfo& gpu_info) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 void ShellContentClient::AddPepperPlugins( | 21 void ShellContentClient::AddPepperPlugins( |
| 22 std::vector<content::PepperPluginInfo>* plugins) { | 22 std::vector<content::PepperPluginInfo>* plugins) { |
| 23 } | 23 } |
| 24 | 24 |
| 25 void ShellContentClient::AddNPAPIPlugins( | 25 void ShellContentClient::AddNPAPIPlugins( |
| 26 webkit::npapi::PluginList* plugin_list) { | 26 webkit::npapi::PluginList* plugin_list) { |
| 27 } | 27 } |
| 28 | 28 |
| 29 bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { | |
| 30 return false; | |
| 31 } | |
| 32 | |
| 33 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { | 29 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { |
| 34 return false; | 30 return false; |
| 35 } | 31 } |
| 36 | 32 |
| 37 std::string ShellContentClient::GetUserAgent(bool* overriding) const { | 33 std::string ShellContentClient::GetUserAgent(bool* overriding) const { |
| 38 *overriding = false; | 34 *overriding = false; |
| 39 return std::string("Chrome/15.16.17.18"); | 35 return std::string("Chrome/15.16.17.18"); |
| 40 } | 36 } |
| 41 | 37 |
| 42 string16 ShellContentClient::GetLocalizedString(int message_id) const { | 38 string16 ShellContentClient::GetLocalizedString(int message_id) const { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 56 | 52 |
| 57 #if defined(OS_MACOSX) | 53 #if defined(OS_MACOSX) |
| 58 bool ShellContentClient::GetSandboxProfileForSandboxType( | 54 bool ShellContentClient::GetSandboxProfileForSandboxType( |
| 59 int sandbox_type, | 55 int sandbox_type, |
| 60 int* sandbox_profile_resource_id) const { | 56 int* sandbox_profile_resource_id) const { |
| 61 return false; | 57 return false; |
| 62 } | 58 } |
| 63 #endif | 59 #endif |
| 64 | 60 |
| 65 } // namespace content | 61 } // namespace content |
| OLD | NEW |