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

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

Issue 2582463003: media: Verify CDM Host files (Closed)
Patch Set: comments addressed Created 3 years, 11 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') | content/zygote/zygote_main_linux.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 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 } 38 }
39 39
40 namespace content { 40 namespace content {
41 41
42 class ContentBrowserClient; 42 class ContentBrowserClient;
43 class ContentClient; 43 class ContentClient;
44 class ContentGpuClient; 44 class ContentGpuClient;
45 class ContentRendererClient; 45 class ContentRendererClient;
46 class ContentUtilityClient; 46 class ContentUtilityClient;
47 class OriginTrialPolicy; 47 class OriginTrialPolicy;
48 struct CdmHostFilePath;
48 struct CdmInfo; 49 struct CdmInfo;
49 struct PepperPluginInfo; 50 struct PepperPluginInfo;
50 51
51 // Setter and getter for the client. The client should be set early, before any 52 // Setter and getter for the client. The client should be set early, before any
52 // content code is called. 53 // content code is called.
53 CONTENT_EXPORT void SetContentClient(ContentClient* client); 54 CONTENT_EXPORT void SetContentClient(ContentClient* client);
54 55
55 #if defined(CONTENT_IMPLEMENTATION) 56 #if defined(CONTENT_IMPLEMENTATION)
56 // Content's embedder API should only be used by content. 57 // Content's embedder API should only be used by content.
57 ContentClient* GetContentClient(); 58 ContentClient* GetContentClient();
(...skipping 22 matching lines...) Expand all
80 // Sets the currently active URL. Use GURL() to clear the URL. 81 // Sets the currently active URL. Use GURL() to clear the URL.
81 virtual void SetActiveURL(const GURL& url) {} 82 virtual void SetActiveURL(const GURL& url) {}
82 83
83 // Sets the data on the current gpu. 84 // Sets the data on the current gpu.
84 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {} 85 virtual void SetGpuInfo(const gpu::GPUInfo& gpu_info) {}
85 86
86 // Gives the embedder a chance to register its own pepper plugins. 87 // Gives the embedder a chance to register its own pepper plugins.
87 virtual void AddPepperPlugins( 88 virtual void AddPepperPlugins(
88 std::vector<content::PepperPluginInfo>* plugins) {} 89 std::vector<content::PepperPluginInfo>* plugins) {}
89 90
90 // Gives the embedder a chance to register the content decryption 91 // Gives the embedder a chance to register the Content Decryption Modules
91 // modules it supports. 92 // (CDM) it supports, as well as the CDM host file paths to verify CDM host.
93 // |cdms| or |cdm_host_file_paths| can be null which means that specific list
94 // is not needed.
92 virtual void AddContentDecryptionModules( 95 virtual void AddContentDecryptionModules(
93 std::vector<content::CdmInfo>* cdms) {} 96 std::vector<content::CdmInfo>* cdms,
97 std::vector<content::CdmHostFilePath>* cdm_host_file_paths) {}
94 98
95 // Gives the embedder a chance to register its own schemes early in the 99 // Gives the embedder a chance to register its own schemes early in the
96 // startup sequence. 100 // startup sequence.
97 struct Schemes { 101 struct Schemes {
98 Schemes(); 102 Schemes();
99 ~Schemes(); 103 ~Schemes();
100 std::vector<std::string> standard_schemes; 104 std::vector<std::string> standard_schemes;
101 std::vector<std::string> referrer_schemes; 105 std::vector<std::string> referrer_schemes;
102 std::vector<std::string> savable_schemes; 106 std::vector<std::string> savable_schemes;
103 // Additional schemes that should be allowed to register service workers. 107 // Additional schemes that should be allowed to register service workers.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 ContentGpuClient* gpu_; 196 ContentGpuClient* gpu_;
193 // The embedder API for participating in renderer logic. 197 // The embedder API for participating in renderer logic.
194 ContentRendererClient* renderer_; 198 ContentRendererClient* renderer_;
195 // The embedder API for participating in utility logic. 199 // The embedder API for participating in utility logic.
196 ContentUtilityClient* utility_; 200 ContentUtilityClient* utility_;
197 }; 201 };
198 202
199 } // namespace content 203 } // namespace content
200 204
201 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 205 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/common/cdm_info.h ('k') | content/zygote/zygote_main_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698