OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 5 #ifndef CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 6 #define CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/public/common/content_client.h" | 10 #include "content/public/common/content_client.h" |
11 | 11 |
12 namespace chrome { | 12 namespace chrome { |
13 | 13 |
14 class ChromeContentClient : public content::ContentClient { | 14 class ChromeContentClient : public content::ContentClient { |
15 public: | 15 public: |
16 static const char* const kPDFPluginName; | 16 static const char* const kPDFPluginName; |
17 static const char* const kNaClPluginName; | 17 static const char* const kNaClPluginName; |
18 static const char* const kNaClOldPluginName; | 18 static const char* const kNaClOldPluginName; |
19 | 19 |
20 virtual void SetActiveURL(const GURL& url) OVERRIDE; | 20 virtual void SetActiveURL(const GURL& url) OVERRIDE; |
21 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; | 21 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; |
22 virtual void AddPepperPlugins( | 22 virtual void AddPepperPlugins( |
23 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; | 23 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; |
24 virtual void AddNPAPIPlugins( | 24 virtual void AddNPAPIPlugins( |
25 webkit::npapi::PluginList* plugin_list) OVERRIDE; | 25 webkit::npapi::PluginList* plugin_list) OVERRIDE; |
26 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) OVERRIDE; | |
Charlie Reis
2011/12/01 23:13:02
This will need to stick around if we don't change
supersat
2011/12/09 23:08:20
Yeah. Part of the swapped out changes leaked throu
| |
27 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; | 26 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; |
28 virtual std::string GetUserAgent(bool* overriding) const OVERRIDE; | 27 virtual std::string GetUserAgent(bool* overriding) const OVERRIDE; |
29 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; | 28 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; |
30 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; | 29 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; |
31 | 30 |
32 #if defined(OS_WIN) | 31 #if defined(OS_WIN) |
33 virtual bool SandboxPlugin(CommandLine* command_line, | 32 virtual bool SandboxPlugin(CommandLine* command_line, |
34 sandbox::TargetPolicy* policy) OVERRIDE; | 33 sandbox::TargetPolicy* policy) OVERRIDE; |
35 #endif | 34 #endif |
36 | 35 |
37 #if defined(OS_MACOSX) | 36 #if defined(OS_MACOSX) |
38 virtual bool GetSandboxProfileForSandboxType( | 37 virtual bool GetSandboxProfileForSandboxType( |
39 int sandbox_type, | 38 int sandbox_type, |
40 int* sandbox_profile_resource_id) const OVERRIDE; | 39 int* sandbox_profile_resource_id) const OVERRIDE; |
41 #endif | 40 #endif |
42 }; | 41 }; |
43 | 42 |
44 } // namespace chrome | 43 } // namespace chrome |
45 | 44 |
46 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 45 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |