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

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

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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/browser/ui/browser_commands.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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/public/common/content_client.h" 12 #include "content/public/common/content_client.h"
13 13
14 namespace chrome { 14 namespace chrome {
15 15
16 class ChromeContentClient : public content::ContentClient { 16 class ChromeContentClient : public content::ContentClient {
17 public: 17 public:
18 static const char* const kPDFPluginName; 18 static const char* const kPDFPluginName;
19 static const char* const kNaClPluginName; 19 static const char* const kNaClPluginName;
20 static const char* const kNaClOldPluginName; 20 static const char* const kNaClOldPluginName;
21 21
22 // This is what the ContentClient::GetProduct implementation calls.
23 static std::string GetProductImpl();
24
22 virtual void SetActiveURL(const GURL& url) OVERRIDE; 25 virtual void SetActiveURL(const GURL& url) OVERRIDE;
23 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE; 26 virtual void SetGpuInfo(const content::GPUInfo& gpu_info) OVERRIDE;
24 virtual void AddPepperPlugins( 27 virtual void AddPepperPlugins(
25 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE; 28 std::vector<content::PepperPluginInfo>* plugins) OVERRIDE;
26 virtual void AddNPAPIPlugins( 29 virtual void AddNPAPIPlugins(
27 webkit::npapi::PluginList* plugin_list) OVERRIDE; 30 webkit::npapi::PluginList* plugin_list) OVERRIDE;
28 virtual void AddAdditionalSchemes( 31 virtual void AddAdditionalSchemes(
29 std::vector<std::string>* standard_schemes, 32 std::vector<std::string>* standard_schemes,
30 std::vector<std::string>* saveable_shemes) OVERRIDE; 33 std::vector<std::string>* saveable_shemes) OVERRIDE;
31 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE; 34 virtual bool CanHandleWhileSwappedOut(const IPC::Message& msg) OVERRIDE;
(...skipping 12 matching lines...) Expand all
44 virtual bool GetSandboxProfileForSandboxType( 47 virtual bool GetSandboxProfileForSandboxType(
45 int sandbox_type, 48 int sandbox_type,
46 int* sandbox_profile_resource_id) const OVERRIDE; 49 int* sandbox_profile_resource_id) const OVERRIDE;
47 virtual std::string GetCarbonInterposePath() const OVERRIDE; 50 virtual std::string GetCarbonInterposePath() const OVERRIDE;
48 #endif 51 #endif
49 }; 52 };
50 53
51 } // namespace chrome 54 } // namespace chrome
52 55
53 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_ 56 #endif // CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/common/chrome_content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698