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

Side by Side Diff: content/shell/shell_content_client.h

Issue 9623027: Move --user-agent overriding logic from chrome into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: fix indent Created 8 years, 9 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
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 CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ 5 #ifndef CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ 6 #define CONTENT_SHELL_SHELL_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 content { 12 namespace content {
13 13
14 class ShellContentClient : public ContentClient { 14 class ShellContentClient : public ContentClient {
15 public: 15 public:
16 virtual ~ShellContentClient(); 16 virtual ~ShellContentClient();
17 17
18 virtual void SetActiveURL(const GURL& url) OVERRIDE; 18 virtual void SetActiveURL(const GURL& url) OVERRIDE;
19 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE; 19 virtual void SetGpuInfo(const GPUInfo& gpu_info) OVERRIDE;
20 virtual void AddPepperPlugins( 20 virtual void AddPepperPlugins(
21 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; 21 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE;
22 virtual void AddNPAPIPlugins( 22 virtual void AddNPAPIPlugins(
23 webkit::npapi::PluginList* plugin_list) OVERRIDE; 23 webkit::npapi::PluginList* plugin_list) OVERRIDE;
24 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; 24 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE;
25 virtual std::string GetUserAgent(bool* overriding) const OVERRIDE; 25 virtual std::string GetUserAgent() const OVERRIDE;
26 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; 26 virtual string16 GetLocalizedString(int message_id) const OVERRIDE;
27 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; 27 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE;
28 28
29 #if defined(OS_WIN) 29 #if defined(OS_WIN)
30 virtual bool SandboxPlugin(CommandLine* command_line, 30 virtual bool SandboxPlugin(CommandLine* command_line,
31 sandbox::TargetPolicy* policy) OVERRIDE; 31 sandbox::TargetPolicy* policy) OVERRIDE;
32 #endif 32 #endif
33 33
34 #if defined(OS_MACOSX) 34 #if defined(OS_MACOSX)
35 virtual bool GetSandboxProfileForSandboxType( 35 virtual bool GetSandboxProfileForSandboxType(
36 int sandbox_type, 36 int sandbox_type,
37 int* sandbox_profile_resource_id) const OVERRIDE; 37 int* sandbox_profile_resource_id) const OVERRIDE;
38 #endif 38 #endif
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_ 43 #endif // CONTENT_SHELL_SHELL_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698