| 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/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" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 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) { | |
| 39 return true; | |
| 40 } | |
| 41 | |
| 42 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { | 38 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { |
| 43 return true; | 39 return true; |
| 44 } | 40 } |
| 45 | 41 |
| 46 std::string TestContentClient::GetUserAgent(bool* overriding) const { | 42 std::string TestContentClient::GetUserAgent(bool* overriding) const { |
| 47 *overriding = false; | 43 *overriding = false; |
| 48 return std::string("TestContentClient"); | 44 return std::string("TestContentClient"); |
| 49 } | 45 } |
| 50 | 46 |
| 51 string16 TestContentClient::GetLocalizedString(int message_id) const { | 47 string16 TestContentClient::GetLocalizedString(int message_id) const { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 65 } | 61 } |
| 66 #endif | 62 #endif |
| 67 | 63 |
| 68 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
| 69 bool TestContentClient::GetSandboxProfileForSandboxType( | 65 bool TestContentClient::GetSandboxProfileForSandboxType( |
| 70 int sandbox_type, | 66 int sandbox_type, |
| 71 int* sandbox_profile_resource_id) const { | 67 int* sandbox_profile_resource_id) const { |
| 72 return false; | 68 return false; |
| 73 } | 69 } |
| 74 #endif | 70 #endif |
| OLD | NEW |