OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ |
| 6 #define CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/compiler_specific.h" |
| 10 #include "content/common/content_client.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class ShellContentClient : public ContentClient { |
| 15 public: |
| 16 virtual ~ShellContentClient(); |
| 17 |
| 18 virtual void SetActiveURL(const GURL& url) OVERRIDE; |
| 19 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE; |
| 20 virtual void AddPepperPlugins( |
| 21 std::vector<PepperPluginInfo>* plugins) OVERRIDE; |
| 22 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) OVERRIDE; |
| 23 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; |
| 24 virtual std::string GetUserAgent(bool mimic_windows) const OVERRIDE; |
| 25 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
| 26 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; |
| 27 |
| 28 #if defined(OS_WIN) |
| 29 virtual bool SandboxPlugin(CommandLine* command_line, |
| 30 sandbox::TargetPolicy* policy) OVERRIDE; |
| 31 #endif |
| 32 }; |
| 33 |
| 34 } // namespace content |
| 35 |
| 36 #endif // CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ |
OLD | NEW |