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

Unified Diff: content/renderer/origin_trials/web_trial_token_validator_impl.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
Index: content/renderer/origin_trials/web_trial_token_validator_impl.h
diff --git a/content/renderer/origin_trials/trial_token_validator.h b/content/renderer/origin_trials/web_trial_token_validator_impl.h
similarity index 67%
rename from content/renderer/origin_trials/trial_token_validator.h
rename to content/renderer/origin_trials/web_trial_token_validator_impl.h
index 4d877fc91406a5d2446b13605627a512e05451a9..ad20a1ccdc96b03b34819460c83a0b44b0f340b8 100644
--- a/content/renderer/origin_trials/trial_token_validator.h
+++ b/content/renderer/origin_trials/web_trial_token_validator_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
-#define CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
+#ifndef CONTENT_RENDERER_ORIGIN_TRIALS_WEB_TRIAL_TOKEN_VALIDATOR_IMPL_H_
+#define CONTENT_RENDERER_ORIGIN_TRIALS_WEB_TRIAL_TOKEN_VALIDATOR_IMPL_H_
#include <string>
#include "content/common/content_export.h"
@@ -15,11 +15,11 @@ namespace content {
// to validate tokens to enable experimental features.
//
// This class is thread-safe.
-class CONTENT_EXPORT TrialTokenValidator
+class CONTENT_EXPORT WebTrialTokenValidatorImpl
: public NON_EXPORTED_BASE(blink::WebTrialTokenValidator) {
public:
- TrialTokenValidator();
- ~TrialTokenValidator() override;
+ WebTrialTokenValidatorImpl();
+ ~WebTrialTokenValidatorImpl() override;
// blink::WebTrialTokenValidator implementation
bool validateToken(const blink::WebString& token,
@@ -27,9 +27,9 @@ class CONTENT_EXPORT TrialTokenValidator
const blink::WebString& featureName) override;
private:
- DISALLOW_COPY_AND_ASSIGN(TrialTokenValidator);
+ DISALLOW_COPY_AND_ASSIGN(WebTrialTokenValidatorImpl);
};
} // namespace content
-#endif // CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
+#endif // CONTENT_RENDERER_ORIGIN_TRIALS_WEB_TRIAL_TOKEN_VALIDATOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698