Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: content/test/test_content_client.cc

Issue 9271054: Send replies to sync IPCs from swapped out renderers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 return false;
40 } 40 }
41 41
42 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 42 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
43 return true; 43 return false;
44 } 44 }
45 45
46 std::string TestContentClient::GetUserAgent(bool* overriding) const { 46 std::string TestContentClient::GetUserAgent(bool* overriding) const {
47 *overriding = false; 47 *overriding = false;
48 return std::string("TestContentClient"); 48 return std::string("TestContentClient");
49 } 49 }
50 50
51 string16 TestContentClient::GetLocalizedString(int message_id) const { 51 string16 TestContentClient::GetLocalizedString(int message_id) const {
52 return string16(); 52 return string16();
53 } 53 }
(...skipping 11 matching lines...) Expand all
65 } 65 }
66 #endif 66 #endif
67 67
68 #if defined(OS_MACOSX) 68 #if defined(OS_MACOSX)
69 bool TestContentClient::GetSandboxProfileForSandboxType( 69 bool TestContentClient::GetSandboxProfileForSandboxType(
70 int sandbox_type, 70 int sandbox_type,
71 int* sandbox_profile_resource_id) const { 71 int* sandbox_profile_resource_id) const {
72 return false; 72 return false;
73 } 73 }
74 #endif 74 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698