OLD | NEW |
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 #ifndef CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ |
6 #define CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ | 6 #define CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <string> |
| 10 #include <vector> |
| 11 |
9 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
10 #include "content/public/common/content_client.h" | 13 #include "content/public/common/content_client.h" |
11 | 14 |
12 namespace content { | 15 namespace content { |
13 | 16 |
14 class ShellContentClient : public ContentClient { | 17 class ShellContentClient : public ContentClient { |
15 public: | 18 public: |
16 virtual ~ShellContentClient(); | 19 virtual ~ShellContentClient(); |
17 | 20 |
18 virtual void SetActiveURL(const GURL& url) OVERRIDE; | 21 virtual void SetActiveURL(const GURL& url) OVERRIDE; |
19 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE; | 22 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE; |
20 virtual void AddPepperPlugins( | 23 virtual void AddPepperPlugins( |
21 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; | 24 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; |
22 virtual void AddNPAPIPlugins( | 25 virtual void AddNPAPIPlugins( |
23 webkit::npapi::PluginList* plugin_list) OVERRIDE; | 26 webkit::npapi::PluginList* plugin_list) OVERRIDE; |
| 27 virtual void AddAdditionalSchemes( |
| 28 std::vector<std::string>* standard_schemes, |
| 29 std::vector<std::string>* savable_schemes) OVERRIDE; |
24 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; | 30 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; |
25 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; | 31 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; |
26 virtual std::string GetUserAgent() const OVERRIDE; | 32 virtual std::string GetUserAgent() const OVERRIDE; |
27 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; | 33 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
28 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; | 34 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; |
29 | 35 |
30 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
31 virtual bool SandboxPlugin(CommandLine* command_line, | 37 virtual bool SandboxPlugin(CommandLine* command_line, |
32 sandbox::TargetPolicy* policy) OVERRIDE; | 38 sandbox::TargetPolicy* policy) OVERRIDE; |
33 #endif | 39 #endif |
34 | 40 |
35 #if defined(OS_MACOSX) | 41 #if defined(OS_MACOSX) |
36 virtual bool GetSandboxProfileForSandboxType( | 42 virtual bool GetSandboxProfileForSandboxType( |
37 int sandbox_type, | 43 int sandbox_type, |
38 int* sandbox_profile_resource_id) const OVERRIDE; | 44 int* sandbox_profile_resource_id) const OVERRIDE; |
39 #endif | 45 #endif |
40 }; | 46 }; |
41 | 47 |
42 } // namespace content | 48 } // namespace content |
43 | 49 |
44 #endif // CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ | 50 #endif // CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ |
OLD | NEW |