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

Unified Diff: chrome/common/origin_trials/origin_trial_key_manager.h

Issue 1742053002: Move trial token code to content/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 | « chrome/common/chrome_content_client.cc ('k') | chrome/common/origin_trials/origin_trial_key_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/origin_trials/origin_trial_key_manager.h
diff --git a/chrome/common/origin_trials/origin_trial_key_manager.h b/chrome/common/origin_trials/origin_trial_key_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd6b2453b15ec4ef3a48722509766a0db0bcd013
--- /dev/null
+++ b/chrome/common/origin_trials/origin_trial_key_manager.h
@@ -0,0 +1,17 @@
+// 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 CHROME_COMMON_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_
+#define CHROME_COMMON_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_
+
+#include "base/strings/string_piece.h"
+
+// This class is instantiated on the main/ui thread, but its methods can be
+// accessed from any thread.
+class OriginTrialKeyManager {
Nico 2016/03/11 21:49:05 (why is this an instantiated class instead of just
Marijn Kruisselbrink 2016/03/11 21:56:36 I'm not sure. I think iclelland@ had some future p
+ public:
+ base::StringPiece GetPublicKey();
+};
+
+#endif // CHROME_COMMON_ORIGIN_TRIALS_ORIGIN_TRIAL_KEY_MANAGER_H_
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/origin_trials/origin_trial_key_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698