Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: chrome/common/chrome_content_client.h

Issue 8002003: Revert "Remove webkit_glue::BuildUserAgent(), change the contract in webkit_glue" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_init.cc ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
10 #include "content/common/content_client.h" 9 #include "content/common/content_client.h"
11 10
12 namespace chrome { 11 namespace chrome {
13 12
14 class ChromeContentClient : public content::ContentClient { 13 class ChromeContentClient : public content::ContentClient {
15 public: 14 public:
16 static const char* const kPDFPluginName; 15 static const char* const kPDFPluginName;
17 static const char* const kNaClPluginName; 16 static const char* const kNaClPluginName;
18 static const char* const kNaClOldPluginName; 17 static const char* const kNaClOldPluginName;
19 18
20 virtual void SetActiveURL(const GURL& url) OVERRIDE; 19 virtual void SetActiveURL(const GURL& url);
21 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE; 20 virtual void SetGpuInfo(const GPUInfo& gpu_info);
22 virtual void AddPepperPlugins( 21 virtual void AddPepperPlugins(std::vector<PepperPluginInfo>* plugins);
23 std::vector<PepperPluginInfo>* plugins) OVERRIDE; 22 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg);
24 virtual bool CanSendWhileSwappedOut(const IPC::Message* msg) OVERRIDE; 23 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg);
25 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; 24 virtual std::string GetUserAgent(bool mimic_windows) const;
26 virtual std::string GetUserAgent(bool* overriding) const OVERRIDE; 25 virtual string16 GetLocalizedString(int message_id) const;
27 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; 26 virtual base::StringPiece GetDataResource(int resource_id) const;
28 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE;
29 27
30 #if defined(OS_WIN) 28 #if defined(OS_WIN)
31 virtual bool SandboxPlugin(CommandLine* command_line, 29 virtual bool SandboxPlugin(CommandLine* command_line,
32 sandbox::TargetPolicy* policy) OVERRIDE; 30 sandbox::TargetPolicy* policy);
33 #endif 31 #endif
34 }; 32 };
35 33
36 } // namespace chrome 34 } // namespace chrome
37 35
38 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 36 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_init.cc ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698