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

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

Issue 8493026: Revert r108760 / reland r108744, r108753 w/ fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rename plugin list accessor to plugin_list() Created 9 years, 1 month 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
« no previous file with comments | « content/test/test_content_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/logging.h" 7 #include "base/logging.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 9
10 TestContentClient::TestContentClient() { 10 TestContentClient::TestContentClient() {
11 } 11 }
12 12
13 TestContentClient::~TestContentClient() { 13 TestContentClient::~TestContentClient() {
14 } 14 }
15 15
16 void TestContentClient::SetActiveURL(const GURL& url) { 16 void TestContentClient::SetActiveURL(const GURL& url) {
17 } 17 }
18 18
19 void TestContentClient::SetGpuInfo(const content::GPUInfo& gpu_info) { 19 void TestContentClient::SetGpuInfo(const content::GPUInfo& gpu_info) {
20 } 20 }
21 21
22 void TestContentClient::AddPepperPlugins( 22 void TestContentClient::AddPepperPlugins(
23 std::vector<content::PepperPluginInfo>* plugins) { 23 std::vector<content::PepperPluginInfo>* plugins) {
24 } 24 }
25 25
26 void TestContentClient::AddNPAPIPlugins(
27 webkit::npapi::PluginList* plugin_list) {
28 }
29
26 bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { 30 bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
27 return true; 31 return true;
28 } 32 }
29 33
30 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 34 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
31 return true; 35 return true;
32 } 36 }
33 37
34 std::string TestContentClient::GetUserAgent(bool* overriding) const { 38 std::string TestContentClient::GetUserAgent(bool* overriding) const {
35 *overriding = false; 39 *overriding = false;
36 return std::string("TestContentClient"); 40 return std::string("TestContentClient");
37 } 41 }
38 42
39 string16 TestContentClient::GetLocalizedString(int message_id) const { 43 string16 TestContentClient::GetLocalizedString(int message_id) const {
40 return string16(); 44 return string16();
41 } 45 }
42 46
43 base::StringPiece TestContentClient::GetDataResource(int resource_id) const { 47 base::StringPiece TestContentClient::GetDataResource(int resource_id) const {
44 return base::StringPiece(); 48 return base::StringPiece();
45 } 49 }
46 50
47 #if defined(OS_WIN) 51 #if defined(OS_WIN)
48 bool TestContentClient::SandboxPlugin(CommandLine* command_line, 52 bool TestContentClient::SandboxPlugin(CommandLine* command_line,
49 sandbox::TargetPolicy* policy) { 53 sandbox::TargetPolicy* policy) {
50 return false; 54 return false;
51 } 55 }
52 #endif 56 #endif
OLDNEW
« no previous file with comments | « content/test/test_content_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698