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

Side by Side Diff: content/shell/shell_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) 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/shell/shell_content_client.h" 5 #include "content/shell/shell_content_client.h"
6 6
7 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 #include "ui/base/resource/resource_bundle.h" 8 #include "ui/base/resource/resource_bundle.h"
9 #include "webkit/glue/user_agent.h" 9 #include "webkit/glue/user_agent.h"
10 10
(...skipping 13 matching lines...) Expand all
24 } 24 }
25 25
26 void ShellContentClient::AddNPAPIPlugins( 26 void ShellContentClient::AddNPAPIPlugins(
27 webkit::npapi::PluginList* plugin_list) { 27 webkit::npapi::PluginList* plugin_list) {
28 } 28 }
29 29
30 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 30 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
31 return false; 31 return false;
32 } 32 }
33 33
34 std::string ShellContentClient::GetUserAgent(bool* overriding) const { 34 std::string ShellContentClient::GetUserAgent() const {
35 *overriding = false;
36 return std::string("Chrome/15.16.17.18"); 35 return std::string("Chrome/15.16.17.18");
37 } 36 }
38 37
39 string16 ShellContentClient::GetLocalizedString(int message_id) const { 38 string16 ShellContentClient::GetLocalizedString(int message_id) const {
40 return string16(); 39 return string16();
41 } 40 }
42 41
43 base::StringPiece ShellContentClient::GetDataResource(int resource_id) const { 42 base::StringPiece ShellContentClient::GetDataResource(int resource_id) const {
44 return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id); 43 return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id);
45 } 44 }
46 45
47 #if defined(OS_WIN) 46 #if defined(OS_WIN)
48 bool ShellContentClient::SandboxPlugin(CommandLine* command_line, 47 bool ShellContentClient::SandboxPlugin(CommandLine* command_line,
49 sandbox::TargetPolicy* policy) { 48 sandbox::TargetPolicy* policy) {
50 return false; 49 return false;
51 } 50 }
52 #endif 51 #endif
53 52
54 #if defined(OS_MACOSX) 53 #if defined(OS_MACOSX)
55 bool ShellContentClient::GetSandboxProfileForSandboxType( 54 bool ShellContentClient::GetSandboxProfileForSandboxType(
56 int sandbox_type, 55 int sandbox_type,
57 int* sandbox_profile_resource_id) const { 56 int* sandbox_profile_resource_id) const {
58 return false; 57 return false;
59 } 58 }
60 #endif 59 #endif
61 60
62 } // namespace content 61 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698