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

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

Issue 1741783002: Add disabled origin trial feature list (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ef-finch
Patch Set: Separate the introduction of preference-persistence into a different CL Created 4 years, 6 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // Called by the renderer after the render thread has started, and allows the 171 // Called by the renderer after the render thread has started, and allows the
172 // embedder to set up any global origin trial policies (custom public key, or 172 // embedder to set up any global origin trial policies (custom public key, or
173 // disabled experiments) 173 // disabled experiments)
174 virtual void InitializeOriginTrialPolicy(); 174 virtual void InitializeOriginTrialPolicy();
175 175
176 // Returns the public key to be used for origin trials, or an empty string if 176 // Returns the public key to be used for origin trials, or an empty string if
177 // origin trials are not enabled in this context. 177 // origin trials are not enabled in this context.
178 virtual base::StringPiece GetOriginTrialPublicKey(); 178 virtual base::StringPiece GetOriginTrialPublicKey();
179 179
180 // Returns true if the named experimental feature should be disabled in origin
181 // trials, even if a valid token is present.
182 virtual bool IsOriginTrialFeatureDisabled(base::StringPiece feature);
chasej 2016/06/07 15:51:31 With additional methods, would it make sense to co
Sorin Jianu 2016/06/07 17:20:24 can the virtual function be declared const?
iclelland 2016/06/08 13:37:56 Yes, and GetOriginTrialPublicKey above it.
iclelland 2016/06/08 15:38:52 I've made that refactor in a follow-up CL; see the
183
180 #if defined(OS_ANDROID) 184 #if defined(OS_ANDROID)
181 // Returns true for clients like Android WebView that uses synchronous 185 // Returns true for clients like Android WebView that uses synchronous
182 // compositor. Note setting this to true will permit synchronous IPCs from 186 // compositor. Note setting this to true will permit synchronous IPCs from
183 // the browser UI thread. 187 // the browser UI thread.
184 virtual bool UsingSynchronousCompositing(); 188 virtual bool UsingSynchronousCompositing();
185 189
186 // Returns the MediaClientAndroid to be used by media code on Android. 190 // Returns the MediaClientAndroid to be used by media code on Android.
187 virtual media::MediaClientAndroid* GetMediaClientAndroid(); 191 virtual media::MediaClientAndroid* GetMediaClientAndroid();
188 #endif // OS_ANDROID 192 #endif // OS_ANDROID
189 193
190 private: 194 private:
191 friend class ContentClientInitializer; // To set these pointers. 195 friend class ContentClientInitializer; // To set these pointers.
192 friend class InternalTestInitializer; 196 friend class InternalTestInitializer;
193 197
194 // The embedder API for participating in browser logic. 198 // The embedder API for participating in browser logic.
195 ContentBrowserClient* browser_; 199 ContentBrowserClient* browser_;
196 // The embedder API for participating in gpu logic. 200 // The embedder API for participating in gpu logic.
197 ContentGpuClient* gpu_; 201 ContentGpuClient* gpu_;
198 // The embedder API for participating in renderer logic. 202 // The embedder API for participating in renderer logic.
199 ContentRendererClient* renderer_; 203 ContentRendererClient* renderer_;
200 // The embedder API for participating in utility logic. 204 // The embedder API for participating in utility logic.
201 ContentUtilityClient* utility_; 205 ContentUtilityClient* utility_;
202 }; 206 };
203 207
204 } // namespace content 208 } // namespace content
205 209
206 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_ 210 #endif // CONTENT_PUBLIC_COMMON_CONTENT_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698