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

Unified Diff: content/public/common/content_client.h

Issue 2049783002: Refactor OriginTrialPolicy to be an abstract interface in content/public/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ef-add-revoked-feature-list
Patch Set: Switch to lazy initialization in ChromeContentClient 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_shell.gypi ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/content_client.h
diff --git a/content/public/common/content_client.h b/content/public/common/content_client.h
index f0862d5b40ac4d16b6bc2b3aa3d8b60f499455d2..5141bf8c153e7611ccfefb980fd843e9ee1da9b3 100644
--- a/content/public/common/content_client.h
+++ b/content/public/common/content_client.h
@@ -49,6 +49,7 @@ class ContentClient;
class ContentGpuClient;
class ContentRendererClient;
class ContentUtilityClient;
+class OriginTrialPolicy;
struct CdmInfo;
struct PepperPluginInfo;
@@ -168,9 +169,9 @@ class CONTENT_EXPORT ContentClient {
// model decisions.
virtual bool IsSupplementarySiteIsolationModeEnabled();
- // Returns the public key to be used for origin trials, or an empty string if
- // origin trials are not enabled in this context.
- virtual base::StringPiece GetOriginTrialPublicKey();
+ // Returns the origin trial policy, or nullptr if origin trials are not
+ // supported by the embedder.
+ virtual OriginTrialPolicy* GetOriginTrialPolicy();
#if defined(OS_ANDROID)
// Returns true for clients like Android WebView that uses synchronous
« no previous file with comments | « content/content_shell.gypi ('k') | content/public/common/content_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698