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

Unified Diff: content/shell/common/shell_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: 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
Index: content/shell/common/shell_origin_trial_policy.h
diff --git a/content/shell/common/shell_origin_trial_policy.h b/content/shell/common/shell_origin_trial_policy.h
new file mode 100644
index 0000000000000000000000000000000000000000..eadbc3691d7079155e9c0975cb79ed991a1a76eb
--- /dev/null
+++ b/content/shell/common/shell_origin_trial_policy.h
@@ -0,0 +1,31 @@
+// Copyright (c) 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_SHELL_COMMON_SHELL_ORIGIN_TRIAL_POLICY_H_
+#define CONTENT_SHELL_COMMON_SHELL_ORIGIN_TRIAL_POLICY_H_
+
+#include "base/macros.h"
+#include "base/strings/string_piece.h"
+#include "content/public/common/origin_trial_policy.h"
+
+namespace content {
+
+class ShellOriginTrialPolicy : public OriginTrialPolicy {
+ public:
+ ShellOriginTrialPolicy();
+ ~ShellOriginTrialPolicy() override;
+
+ // OriginTrialPolicy interface
+ base::StringPiece GetPublicKey() const override;
+ bool IsFeatureDisabled(base::StringPiece feature) const override;
+
+ private:
+ base::StringPiece public_key_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellOriginTrialPolicy);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_COMMON_SHELL_ORIGIN_TRIAL_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698