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
3 // found in the LICENSE file.
5 #include "content/shell/shell_content_client.h"
7 #include "base/string_piece.h"
8 #include "webkit/glue/user_agent.h"
12 ShellContentClient::~ShellContentClient() {
15 void ShellContentClient::SetActiveURL(const GURL
& url
) {
18 void ShellContentClient::SetGpuInfo(const GPUInfo
& gpu_info
) {
21 void ShellContentClient::AddPepperPlugins(
22 std::vector
<content::PepperPluginInfo
>* plugins
) {
25 void ShellContentClient::AddNPAPIPlugins(
26 webkit::npapi::PluginList
* plugin_list
) {
29 bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message
* msg
) {
33 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message
& msg
) {
37 std::string
ShellContentClient::GetUserAgent(bool* overriding
) const {
39 return std::string("Chrome/15.16.17.18");
42 string16
ShellContentClient::GetLocalizedString(int message_id
) const {
46 base::StringPiece
ShellContentClient::GetDataResource(int resource_id
) const {
47 return base::StringPiece();
51 bool ShellContentClient::SandboxPlugin(CommandLine
* command_line
,
52 sandbox::TargetPolicy
* policy
) {
57 #if defined(OS_MACOSX)
58 bool ShellContentClient::GetSandboxProfileForSandboxType(
60 int* sandbox_profile_resource_id
) const {
65 } // namespace content