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

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

Issue 9623027: Move --user-agent overriding logic from chrome into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fix indent Created 8 years, 9 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) 2012 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"
(...skipping 22 matching lines...) Expand all
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::CanHandleWhileSwappedOut(const IPC::Message& msg) { 38 bool TestContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
39 // TestContentClient does not need to handle any additional messages. 39 // TestContentClient does not need to handle any additional messages.
40 return false; 40 return false;
41 } 41 }
42 42
43 std::string TestContentClient::GetUserAgent(bool* overriding) const { 43 std::string TestContentClient::GetUserAgent() const {
44 *overriding = false;
45 return std::string("TestContentClient"); 44 return std::string("TestContentClient");
46 } 45 }
47 46
48 string16 TestContentClient::GetLocalizedString(int message_id) const { 47 string16 TestContentClient::GetLocalizedString(int message_id) const {
49 return string16(); 48 return string16();
50 } 49 }
51 50
52 base::StringPiece TestContentClient::GetDataResource(int resource_id) const { 51 base::StringPiece TestContentClient::GetDataResource(int resource_id) const {
53 base::StringPiece resource; 52 base::StringPiece resource;
54 data_pack_.GetStringPiece(resource_id, &resource); 53 data_pack_.GetStringPiece(resource_id, &resource);
55 return resource; 54 return resource;
56 } 55 }
57 56
58 #if defined(OS_WIN) 57 #if defined(OS_WIN)
59 bool TestContentClient::SandboxPlugin(CommandLine* command_line, 58 bool TestContentClient::SandboxPlugin(CommandLine* command_line,
60 sandbox::TargetPolicy* policy) { 59 sandbox::TargetPolicy* policy) {
61 return false; 60 return false;
62 } 61 }
63 #endif 62 #endif
64 63
65 #if defined(OS_MACOSX) 64 #if defined(OS_MACOSX)
66 bool TestContentClient::GetSandboxProfileForSandboxType( 65 bool TestContentClient::GetSandboxProfileForSandboxType(
67 int sandbox_type, 66 int sandbox_type,
68 int* sandbox_profile_resource_id) const { 67 int* sandbox_profile_resource_id) const {
69 return false; 68 return false;
70 } 69 }
71 #endif 70 #endif
OLDNEW
« content/app/content_main_runner.cc ('K') | « content/test/test_content_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698