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

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 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
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 // module(s) it supports.
Sorin Jianu 2016/04/15 01:53:26 Maybe we just say modules.
jrummell 2016/04/18 20:39:47 Done.
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 ContentGpuClient* gpu_; 174 ContentGpuClient* gpu_;
169 // The embedder API for participating in renderer logic. 175 // The embedder API for participating in renderer logic.
170 ContentRendererClient* renderer_; 176 ContentRendererClient* renderer_;
171 // The embedder API for participating in utility logic. 177 // The embedder API for participating in utility logic.
172 ContentUtilityClient* utility_; 178 ContentUtilityClient* utility_;
173 }; 179 };
174 180
175 } // namespace content 181 } // namespace content
176 182
177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 183 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698