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

Unified Diff: content/public/common/origin_trial_policy.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/public/common/content_client.cc ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/origin_trial_policy.h
diff --git a/content/public/common/origin_trial_policy.h b/content/public/common/origin_trial_policy.h
new file mode 100644
index 0000000000000000000000000000000000000000..32671a3f8c2c84689f68b4282b5a618073d6bdee
--- /dev/null
+++ b/content/public/common/origin_trial_policy.h
@@ -0,0 +1,23 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_COMMON_ORIGIN_TRIAL_POLICY_H_
+#define CONTENT_PUBLIC_COMMON_ORIGIN_TRIAL_POLICY_H_
+
+#include "base/strings/string_piece.h"
+#include "content/common/content_export.h"
+
+namespace content {
+
+class CONTENT_EXPORT OriginTrialPolicy {
+ public:
+ virtual ~OriginTrialPolicy() = default;
+
+ virtual void Initialize() {}
+ virtual base::StringPiece GetPublicKey() const = 0;
+};
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_COMMON_ORIGIN_TRIAL_POLICY_H_
« no previous file with comments | « content/public/common/content_client.cc ('k') | content/shell/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698