| OLD | NEW |
| 1 // Copyright (c) 2011 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/test/test_content_client.h" | 5 #include "content/test/test_content_client.h" |
| 6 | 6 |
| 7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/string_piece.h" | 11 #include "base/string_piece.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 void TestContentClient::AddPepperPlugins( | 30 void TestContentClient::AddPepperPlugins( |
| 31 std::vector<content::PepperPluginInfo>* plugins) { | 31 std::vector<content::PepperPluginInfo>* plugins) { |
| 32 } | 32 } |
| 33 | 33 |
| 34 void TestContentClient::AddNPAPIPlugins( | 34 void TestContentClient::AddNPAPIPlugins( |
| 35 webkit::npapi::PluginList* plugin_list) { | 35 webkit::npapi::PluginList* plugin_list) { |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { | 38 bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { |
| 39 return true; | 39 // TestContentClient does not need to send any additional messages. |
| 40 return false; |
| 40 } | 41 } |
| 41 | 42 |
| 42 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { | 43 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { |
| 43 return true; | 44 // TestContentClient does not need to handle any additional messages. |
| 45 return false; |
| 44 } | 46 } |
| 45 | 47 |
| 46 std::string TestContentClient::GetUserAgent(bool* overriding) const { | 48 std::string TestContentClient::GetUserAgent(bool* overriding) const { |
| 47 *overriding = false; | 49 *overriding = false; |
| 48 return std::string("TestContentClient"); | 50 return std::string("TestContentClient"); |
| 49 } | 51 } |
| 50 | 52 |
| 51 string16 TestContentClient::GetLocalizedString(int message_id) const { | 53 string16 TestContentClient::GetLocalizedString(int message_id) const { |
| 52 return string16(); | 54 return string16(); |
| 53 } | 55 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 65 } | 67 } |
| 66 #endif | 68 #endif |
| 67 | 69 |
| 68 #if defined(OS_MACOSX) | 70 #if defined(OS_MACOSX) |
| 69 bool TestContentClient::GetSandboxProfileForSandboxType( | 71 bool TestContentClient::GetSandboxProfileForSandboxType( |
| 70 int sandbox_type, | 72 int sandbox_type, |
| 71 int* sandbox_profile_resource_id) const { | 73 int* sandbox_profile_resource_id) const { |
| 72 return false; | 74 return false; |
| 73 } | 75 } |
| 74 #endif | 76 #endif |
| OLD | NEW |