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

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

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/app/chrome_main_delegate.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) 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 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 <string>
10 #include <vector>
11
9 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
10 #include "content/public/common/content_client.h" 13 #include "content/public/common/content_client.h"
11 14
12 namespace chrome { 15 namespace chrome {
13 16
14 class ChromeContentClient : public content::ContentClient { 17 class ChromeContentClient : public content::ContentClient {
15 public: 18 public:
16 static const char* const kPDFPluginName; 19 static const char* const kPDFPluginName;
17 static const char* const kNaClPluginName; 20 static const char* const kNaClPluginName;
18 static const char* const kNaClOldPluginName; 21 static const char* const kNaClOldPluginName;
19 22
20 virtual void SetActiveURL(const GURL& url) OVERRIDE; 23 virtual void SetActiveURL(const GURL& url) OVERRIDE;
21 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; 24 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE;
22 virtual void AddPepperPlugins( 25 virtual void AddPepperPlugins(
23 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; 26 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE;
24 virtual void AddNPAPIPlugins( 27 virtual void AddNPAPIPlugins(
25 webkit::npapi::PluginList* plugin_list) OVERRIDE; 28 webkit::npapi::PluginList* plugin_list) OVERRIDE;
29 virtual void AddAdditionalSchemes(
30 std::vector<std::string>* standard_schemes,
31 std::vector<std::string>* saveable_shemes) OVERRIDE;
26 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE; 32 virtual bool HasWebUIScheme(const GURL& url) const OVERRIDE;
27 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; 33 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE;
28 virtual std::string GetUserAgent() const OVERRIDE; 34 virtual std::string GetUserAgent() const OVERRIDE;
29 virtual string16 GetLocalizedString(int message_id) const OVERRIDE; 35 virtual string16 GetLocalizedString(int message_id) const OVERRIDE;
30 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE; 36 virtual base::StringPiece GetDataResource(int resource_id) const OVERRIDE;
31 37
32 #if defined(OS_WIN) 38 #if defined(OS_WIN)
33 virtual bool SandboxPlugin(CommandLine* command_line, 39 virtual bool SandboxPlugin(CommandLine* command_line,
34 sandbox::TargetPolicy* policy) OVERRIDE; 40 sandbox::TargetPolicy* policy) OVERRIDE;
35 #endif 41 #endif
36 42
37 #if defined(OS_MACOSX) 43 #if defined(OS_MACOSX)
38 virtual bool GetSandboxProfileForSandboxType( 44 virtual bool GetSandboxProfileForSandboxType(
39 int sandbox_type, 45 int sandbox_type,
40 int* sandbox_profile_resource_id) const OVERRIDE; 46 int* sandbox_profile_resource_id) const OVERRIDE;
41 #endif 47 #endif
42 }; 48 };
43 49
44 } // namespace chrome 50 } // namespace chrome
45 51
46 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 52 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/app/chrome_main_delegate.cc ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698