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_TEST_TEST_CONTENT_CLIENT_H_ | 5 #ifndef CONTENT_TEST_TEST_CONTENT_CLIENT_H_ |
6 #define CONTENT_TEST_TEST_CONTENT_CLIENT_H_ | 6 #define CONTENT_TEST_TEST_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 #include "ui/base/resource/data_pack.h" | 14 #include "ui/base/resource/data_pack.h" |
12 | 15 |
13 class TestContentClient : public content::ContentClient { | 16 class TestContentClient : public content::ContentClient { |
14 public: | 17 public: |
15 TestContentClient(); | 18 TestContentClient(); |
16 virtual ~TestContentClient(); | 19 virtual ~TestContentClient(); |
17 | 20 |
18 // content::ContentClient: | 21 // content::ContentClient: |
19 virtual void SetActiveURL(const GURL& url) OVERRIDE; | 22 virtual void SetActiveURL(const GURL& url) OVERRIDE; |
20 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; | 23 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; |
21 virtual void AddPepperPlugins( | 24 virtual void AddPepperPlugins( |
22 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; | 25 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; |
23 virtual void AddNPAPIPlugins( | 26 virtual void AddNPAPIPlugins( |
24 webkit::npapi::PluginList* plugin_list) OVERRIDE; | 27 webkit::npapi::PluginList* plugin_list) OVERRIDE; |
| 28 virtual void AddAdditionalSchemes( |
| 29 std::vector<std::string>* standard_schemes, |
| 30 std::vector<std::string>* savable_schemes) OVERRIDE; |
25 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; | 31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; |
26 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; | 32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; |
27 virtual std::string GetUserAgent() const OVERRIDE; | 33 virtual std::string GetUserAgent() const OVERRIDE; |
28 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; | 34 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
29 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; | 35 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; |
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 #if defined(OS_MACOSX) | 40 #if defined(OS_MACOSX) |
35 virtual bool GetSandboxProfileForSandboxType( | 41 virtual bool GetSandboxProfileForSandboxType( |
36 int sandbox_type, | 42 int sandbox_type, |
37 int* sandbox_profile_resource_id) const OVERRIDE; | 43 int* sandbox_profile_resource_id) const OVERRIDE; |
38 #endif | 44 #endif |
39 | 45 |
40 private: | 46 private: |
41 ui::DataPack data_pack_; | 47 ui::DataPack data_pack_; |
42 | 48 |
43 DISALLOW_COPY_AND_ASSIGN(TestContentClient); | 49 DISALLOW_COPY_AND_ASSIGN(TestContentClient); |
44 }; | 50 }; |
45 | 51 |
46 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_H_ | 52 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_H_ |
OLD | NEW |