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

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: Rebase; fix after crrev.com/cb60e703 landed Created 4 years, 7 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // used by the content layer. Returning true enables the infrastructure for 165 // used by the content layer. Returning true enables the infrastructure for
166 // out-of-process iframes, and causes the content layer to consult 166 // out-of-process iframes, and causes the content layer to consult
167 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process 167 // ContentBrowserClient::DoesSiteRequireDedicatedProcess() when making process
168 // model decisions. 168 // model decisions.
169 virtual bool IsSupplementarySiteIsolationModeEnabled(); 169 virtual bool IsSupplementarySiteIsolationModeEnabled();
170 170
171 // Returns the public key to be used for origin trials, or an empty string if 171 // Returns the public key to be used for origin trials, or an empty string if
172 // origin trials are not enabled in this context. 172 // origin trials are not enabled in this context.
173 virtual base::StringPiece GetOriginTrialPublicKey(); 173 virtual base::StringPiece GetOriginTrialPublicKey();
174 174
175 // Returns true if the named experimental feature should be disabled in origin
176 // trials, even if a valid token is present.
177 virtual bool IsOriginTrialFeatureDisabled(base::StringPiece feature);
178
175 #if defined(OS_ANDROID) 179 #if defined(OS_ANDROID)
176 // Returns true for clients like Android WebView that uses synchronous 180 // Returns true for clients like Android WebView that uses synchronous
177 // compositor. Note setting this to true will permit synchronous IPCs from 181 // compositor. Note setting this to true will permit synchronous IPCs from
178 // the browser UI thread. 182 // the browser UI thread.
179 virtual bool UsingSynchronousCompositing(); 183 virtual bool UsingSynchronousCompositing();
180 184
181 // Returns the MediaClientAndroid to be used by media code on Android. 185 // Returns the MediaClientAndroid to be used by media code on Android.
182 virtual media::MediaClientAndroid* GetMediaClientAndroid(); 186 virtual media::MediaClientAndroid* GetMediaClientAndroid();
183 #endif // OS_ANDROID 187 #endif // OS_ANDROID
184 188
185 private: 189 private:
186 friend class ContentClientInitializer; // To set these pointers. 190 friend class ContentClientInitializer; // To set these pointers.
187 friend class InternalTestInitializer; 191 friend class InternalTestInitializer;
188 192
189 // The embedder API for participating in browser logic. 193 // The embedder API for participating in browser logic.
190 ContentBrowserClient* browser_; 194 ContentBrowserClient* browser_;
191 // The embedder API for participating in gpu logic. 195 // The embedder API for participating in gpu logic.
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

Powered by Google App Engine
This is Rietveld 408576698