blob: c00459359f7fc59e165d885185dca3448d53c495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/shell/shell_content_client.h"
#include "base/string_piece.h"
#include "ui/base/resource/resource_bundle.h"
#include "webkit/glue/user_agent.h"
namespace content {
ShellContentClient::~ShellContentClient() {
}
void ShellContentClient::SetActiveURL(const GURL& url) {
}
void ShellContentClient::SetGpuInfo(const GPUInfo& gpu_info) {
}
void ShellContentClient::AddPepperPlugins(
std::vector<content::PepperPluginInfo>* plugins) {
}
void ShellContentClient::AddNPAPIPlugins(
webkit::npapi::PluginList* plugin_list) {
}
void ShellContentClient::AddAdditionalSchemes(
std::vector<std::string>* standard_schemes,
std::vector<std::string>* savable_schemes) {
}
bool ShellContentClient::HasWebUIScheme(const GURL& url) const {
// There are no WebUI URLs in content_shell.
return false;
}
bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
return false;
}
std::string ShellContentClient::GetUserAgent() const {
// The "19" is so that sites that sniff for version think that this is
// something reasonably current; the "77.34.5" is a hint that this isn't a
// standard Chrome.
return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5");
}
string16 ShellContentClient::GetLocalizedString(int message_id) const {
return string16();
}
base::StringPiece ShellContentClient::GetDataResource(
int resource_id,
ui::ScaleFactor scale_factor) const {
return ResourceBundle::GetSharedInstance().GetRawDataResource(
resource_id, scale_factor);
}
#if defined(OS_WIN)
bool ShellContentClient::SandboxPlugin(CommandLine* command_line,
sandbox::TargetPolicy* policy) {
return false;
}
#endif
#if defined(OS_MACOSX)
bool ShellContentClient::GetSandboxProfileForSandboxType(
int sandbox_type,
int* sandbox_profile_resource_id) const {
return false;
}
#endif
} // namespace content
|