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

Side by Side Diff: content/public/common/content_client.h

Issue 1637083002: Add CdmService to keep track of CDMs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + add default copy constructor Created 4 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
« no previous file with comments | « content/public/common/cdm_info.h ('k') | third_party/widevine/cdm/widevine_cdm_common.h » ('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 CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 class TargetPolicy; 38 class TargetPolicy;
39 } 39 }
40 40
41 namespace content { 41 namespace content {
42 42
43 class ContentBrowserClient; 43 class ContentBrowserClient;
44 class ContentClient; 44 class ContentClient;
45 class ContentGpuClient; 45 class ContentGpuClient;
46 class ContentRendererClient; 46 class ContentRendererClient;
47 class ContentUtilityClient; 47 class ContentUtilityClient;
48 struct CdmInfo;
48 struct PepperPluginInfo; 49 struct PepperPluginInfo;
49 50
50 // Setter and getter for the client. The client should be set early, before any 51 // Setter and getter for the client. The client should be set early, before any
51 // content code is called. 52 // content code is called.
52 CONTENT_EXPORT void SetContentClient(ContentClient* client); 53 CONTENT_EXPORT void SetContentClient(ContentClient* client);
53 54
54 #if defined(CONTENT_IMPLEMENTATION) 55 #if defined(CONTENT_IMPLEMENTATION)
55 // Content's embedder API should only be used by content. 56 // Content's embedder API should only be used by content.
56 ContentClient* GetContentClient(); 57 ContentClient* GetContentClient();
57 #endif 58 #endif
(...skipping 21 matching lines...) Expand all
79 // Sets the currently active URL. Use GURL() to clear the URL. 80 // Sets the currently active URL. Use GURL() to clear the URL.
80 virtual void SetActiveURL(const GURL& url) {} 81 virtual void SetActiveURL(const GURL& url) {}
81 82
82 // Sets the data on the current gpu. 83 // Sets the data on the current gpu.
83 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} 84 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {}
84 85
85 // Gives the embedder a chance to register its own pepper plugins. 86 // Gives the embedder a chance to register its own pepper plugins.
86 virtual void AddPepperPlugins( 87 virtual void AddPepperPlugins(
87 std::vector<content::PepperPluginInfo>* plugins) {} 88 std::vector<content::PepperPluginInfo>* plugins) {}
88 89
90 // Gives the embedder a chance to register the content decryption
91 // modules it supports.
92 virtual void AddContentDecryptionModules(
93 std::vector<content::CdmInfo>* cdms) {}
94
89 // Gives the embedder a chance to register its own standard, referrer and 95 // Gives the embedder a chance to register its own standard, referrer and
90 // saveable url schemes early on in the startup sequence. 96 // saveable url schemes early on in the startup sequence.
91 virtual void AddAdditionalSchemes( 97 virtual void AddAdditionalSchemes(
92 std::vector<url::SchemeWithType>* standard_schemes, 98 std::vector<url::SchemeWithType>* standard_schemes,
93 std::vector<url::SchemeWithType>* referrer_schemes, 99 std::vector<url::SchemeWithType>* referrer_schemes,
94 std::vector<std::string>* savable_schemes) {} 100 std::vector<std::string>* savable_schemes) {}
95 101
96 // Returns whether the given message should be sent in a swapped out renderer. 102 // Returns whether the given message should be sent in a swapped out renderer.
97 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); 103 virtual bool CanSendWhileSwappedOut(const IPC::Message* message);
98 104
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 ContentGpuClient* gpu_; 181 ContentGpuClient* gpu_;
176 // The embedder API for participating in renderer logic. 182 // The embedder API for participating in renderer logic.
177 ContentRendererClient* renderer_; 183 ContentRendererClient* renderer_;
178 // The embedder API for participating in utility logic. 184 // The embedder API for participating in utility logic.
179 ContentUtilityClient* utility_; 185 ContentUtilityClient* utility_;
180 }; 186 };
181 187
182 } // namespace content 188 } // namespace content
183 189
184 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 190 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/common/cdm_info.h ('k') | third_party/widevine/cdm/widevine_cdm_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698