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 "content/common/content_client.h" | 9 #include "content/common/content_client.h" |
10 | 10 |
11 namespace chrome { | 11 namespace chrome { |
12 | 12 |
13 class ChromeContentClient : public content::ContentClient { | 13 class ChromeContentClient : public content::ContentClient { |
14 public: | 14 public: |
15 static const char* const kPDFPluginName; | 15 static const char* const kPDFPluginName; |
16 static const char* const kNaClPluginName; | 16 static const char* const kNaClPluginName; |
17 static const char* const kNaClOldPluginName; | 17 static const char* const kNaClOldPluginName; |
18 | 18 |
19 virtual void SetActiveURL(const GURL& url); | 19 virtual void SetActiveURL(const GURL& url); |
20 virtual void SetGpuInfo(const GPUInfo& gpu_info); | 20 virtual void SetGpuInfo(const GPUInfo& gpu_info); |
21 virtual void AddPepperPlugins(std::vector<PepperPluginInfo>* plugins); | 21 virtual void AddPepperPlugins(std::vector<PepperPluginInfo>* plugins); |
22 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg); | 22 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg); |
23 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg); | 23 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg); |
24 virtual std::string GetUserAgent(bool mimic_windows) const; | 24 virtual std::string GetUserAgent(bool *overriding) const; |
Evan Martin
2011/09/21 20:27:24
star on the left
Evan Martin
2011/09/21 20:27:24
Can you add OVERRIDE here to help ensure that you
Dirk Pranke
2011/09/21 21:02:35
Will fix the star ... I forgot about OVERRIDE. All
| |
25 virtual string16 GetLocalizedString(int message_id) const; | 25 virtual string16 GetLocalizedString(int message_id) const; |
26 virtual base::StringPiece GetDataResource(int resource_id) const; | 26 virtual base::StringPiece GetDataResource(int resource_id) const; |
27 | 27 |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
29 virtual bool SandboxPlugin(CommandLine* command_line, | 29 virtual bool SandboxPlugin(CommandLine* command_line, |
30 sandbox::TargetPolicy* policy); | 30 sandbox::TargetPolicy* policy); |
31 #endif | 31 #endif |
32 }; | 32 }; |
33 | 33 |
34 } // namespace chrome | 34 } // namespace chrome |
35 | 35 |
36 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ | 36 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ |
OLD | NEW |