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

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

Issue 8002003: Revert "Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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
« no previous file with comments | « content/test/test_content_client.h ('k') | webkit/glue/user_agent.h » ('j') | 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() {
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { 26 bool TestContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
27 return true; 27 return true;
28 } 28 }
29 29
30 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 30 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
31 return true; 31 return true;
32 } 32 }
33 33
34 std::string TestContentClient::GetUserAgent(bool* overriding) const { 34 std::string TestContentClient::GetUserAgent(bool mimic_windows) const {
35 *overriding = false; 35 return std::string();
36 return std::string("TestContentClient");
37 } 36 }
38 37
39 string16 TestContentClient::GetLocalizedString(int message_id) const { 38 string16 TestContentClient::GetLocalizedString(int message_id) const {
40 return string16(); 39 return string16();
41 } 40 }
42 41
43 base::StringPiece TestContentClient::GetDataResource(int resource_id) const { 42 base::StringPiece TestContentClient::GetDataResource(int resource_id) const {
44 return base::StringPiece(); 43 return base::StringPiece();
45 } 44 }
46 45
47 #if defined(OS_WIN) 46 #if defined(OS_WIN)
48 bool TestContentClient::SandboxPlugin(CommandLine* command_line, 47 bool TestContentClient::SandboxPlugin(CommandLine* command_line,
49 sandbox::TargetPolicy* policy) { 48 sandbox::TargetPolicy* policy) {
50 return false; 49 return false;
51 } 50 }
52 #endif 51 #endif
OLDNEW
« no previous file with comments | « content/test/test_content_client.h ('k') | webkit/glue/user_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698