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

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: Created 4 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
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 ContentPluginClient; 45 class ContentPluginClient;
46 class ContentRendererClient; 46 class ContentRendererClient;
47 class ContentUtilityClient; 47 class ContentUtilityClient;
48 struct KeySystemRegistration;
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 key system(s) it supports.
91 virtual void AddKeySystems(
ddorwin 2016/01/26 20:21:53 Can we remove the ContentRendererClient method? Wh
xhwang 2016/01/29 07:43:06 There's no plan to change how the key system info
92 std::vector<content::KeySystemRegistration>* key_systems) {}
xhwang 2016/01/29 07:43:06 As chatted offline, on Linux we'll actually need t
jrummell 2016/03/04 01:19:40 I looked at zygote_main_linux.cc, and actually upd
93
89 // Gives the embedder a chance to register its own standard and saveable 94 // Gives the embedder a chance to register its own standard and saveable
90 // url schemes early on in the startup sequence. 95 // url schemes early on in the startup sequence.
91 virtual void AddAdditionalSchemes( 96 virtual void AddAdditionalSchemes(
92 std::vector<url::SchemeWithType>* standard_schemes, 97 std::vector<url::SchemeWithType>* standard_schemes,
93 std::vector<std::string>* savable_schemes) {} 98 std::vector<std::string>* savable_schemes) {}
94 99
95 // Returns whether the given message should be sent in a swapped out renderer. 100 // Returns whether the given message should be sent in a swapped out renderer.
96 virtual bool CanSendWhileSwappedOut(const IPC::Message* message); 101 virtual bool CanSendWhileSwappedOut(const IPC::Message* message);
97 102
98 // Returns a string describing the embedder product name and version, 103 // Returns a string describing the embedder product name and version,
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 ContentPluginClient* plugin_; 168 ContentPluginClient* plugin_;
164 // The embedder API for participating in renderer logic. 169 // The embedder API for participating in renderer logic.
165 ContentRendererClient* renderer_; 170 ContentRendererClient* renderer_;
166 // The embedder API for participating in utility logic. 171 // The embedder API for participating in utility logic.
167 ContentUtilityClient* utility_; 172 ContentUtilityClient* utility_;
168 }; 173 };
169 174
170 } // namespace content 175 } // namespace content
171 176
172 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 177 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698