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

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: 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/shell/common/shell_content_client.cc ('k') | content/shell/common/shell_origin_trial_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..c55584fe76106bf24181441d944f9458a88d97bf
--- /dev/null
+++ b/content/shell/common/shell_origin_trial_policy.h
@@ -0,0 +1,30 @@
+// 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_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;
+
+ private:
+ base::StringPiece public_key_;
+
+ DISALLOW_COPY_AND_ASSIGN(ShellOriginTrialPolicy);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_COMMON_SHELL_ORIGIN_TRIAL_POLICY_H_
« no previous file with comments | « content/shell/common/shell_content_client.cc ('k') | content/shell/common/shell_origin_trial_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698