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

Side by Side Diff: content/common/origin_trials/trial_token_validator.h

Issue 1909633003: Collect UMA data for Origin Trials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address some comments Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ 5 #ifndef CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
6 #define CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ 6 #define CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "content/common/origin_trials/trial_token_status.h"
11 #include "url/origin.h" 12 #include "url/origin.h"
12 13
13 namespace content { 14 namespace content {
14 15
15 namespace TrialTokenValidator { 16 namespace TrialTokenValidator {
16 17
17 // This method is thread-safe. 18 // This method is thread-safe.
18 CONTENT_EXPORT bool ValidateToken(const std::string& token, 19 CONTENT_EXPORT TrialTokenStatus ValidateToken(const std::string& token,
19 const url::Origin& origin, 20 const url::Origin& origin,
20 base::StringPiece feature_name); 21 base::StringPiece feature_name);
21 22
22 } // namespace TrialTokenValidator 23 } // namespace TrialTokenValidator
23 24
24 } // namespace content 25 } // namespace content
25 26
26 #endif // CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ 27 #endif // CONTENT_COMMON_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698