| 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> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; | 25 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; |
| 26 virtual void AddNPAPIPlugins( | 26 virtual void AddNPAPIPlugins( |
| 27 webkit::npapi::PluginList* plugin_list) OVERRIDE; | 27 webkit::npapi::PluginList* plugin_list) OVERRIDE; |
| 28 virtual void AddAdditionalSchemes( | 28 virtual void AddAdditionalSchemes( |
| 29 std::vector<std::string>* standard_schemes, | 29 std::vector<std::string>* standard_schemes, |
| 30 std::vector<std::string>* savable_schemes) OVERRIDE; | 30 std::vector<std::string>* savable_schemes) OVERRIDE; |
| 31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; | 31 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; |
| 32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; | 32 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; |
| 33 virtual std::string GetUserAgent() const OVERRIDE; | 33 virtual std::string GetUserAgent() const OVERRIDE; |
| 34 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; | 34 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
| 35 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; | 35 virtual base::StringPiece GetDataResource( |
| 36 virtual base::StringPiece GetImageResource(int resource_id, | 36 int resource_id, |
| 37 float scale_factor) const OVERRIDE; | 37 ui::ScaleFactor scale_factor) const OVERRIDE; |
| 38 #if defined(OS_WIN) | 38 #if defined(OS_WIN) |
| 39 virtual bool SandboxPlugin(CommandLine* command_line, | 39 virtual bool SandboxPlugin(CommandLine* command_line, |
| 40 sandbox::TargetPolicy* policy) OVERRIDE; | 40 sandbox::TargetPolicy* policy) OVERRIDE; |
| 41 #endif | 41 #endif |
| 42 #if defined(OS_MACOSX) | 42 #if defined(OS_MACOSX) |
| 43 virtual bool GetSandboxProfileForSandboxType( | 43 virtual bool GetSandboxProfileForSandboxType( |
| 44 int sandbox_type, | 44 int sandbox_type, |
| 45 int* sandbox_profile_resource_id) const OVERRIDE; | 45 int* sandbox_profile_resource_id) const OVERRIDE; |
| 46 #endif | 46 #endif |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 ui::DataPack data_pack_; | 49 ui::DataPack data_pack_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(TestContentClient); | 51 DISALLOW_COPY_AND_ASSIGN(TestContentClient); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_H_ | 54 #endif // CONTENT_TEST_TEST_CONTENT_CLIENT_H_ |
| OLD | NEW |