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

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

Issue 1680873002: [Experimental Framework] Move trial token code to renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add boringssl dependency to content/renderer/ Created 4 years, 10 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_CHILD_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ 5 #ifndef CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
6 #define CONTENT_CHILD_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ 6 #define CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include "third_party/WebKit/public/platform/WebTrialTokenValidator.h" 9 #include "third_party/WebKit/public/platform/WebTrialTokenValidator.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // The TrialTokenValidator is called by the Experimental Framework code in Blink 13 // The TrialTokenValidator is called by the Experimental Framework code in Blink
14 // to validate tokens to enable experimental features. 14 // to validate tokens to enable experimental features.
15 // 15 //
16 // This class is thread-safe. 16 // This class is thread-safe.
17 class TrialTokenValidator : public blink::WebTrialTokenValidator { 17 class TrialTokenValidator : public blink::WebTrialTokenValidator {
18 public: 18 public:
19 TrialTokenValidator(); 19 TrialTokenValidator();
20 ~TrialTokenValidator() override; 20 ~TrialTokenValidator() override;
21 21
22 // blink::WebTrialTokenValidator implementation 22 // blink::WebTrialTokenValidator implementation
23 bool validateToken(const blink::WebString& token, 23 bool validateToken(const blink::WebString& token,
24 const blink::WebString& origin, 24 const blink::WebString& origin,
25 const blink::WebString& featureName) override; 25 const blink::WebString& featureName) override;
26 26
27 private: 27 private:
28 DISALLOW_COPY_AND_ASSIGN(TrialTokenValidator); 28 DISALLOW_COPY_AND_ASSIGN(TrialTokenValidator);
29 }; 29 };
30 30
31 } // namespace content 31 } // namespace content
32 32
33 #endif // CONTENT_CHILD_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ 33 #endif // CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/origin_trials/trial_token_unittest.cc ('k') | content/renderer/origin_trials/trial_token_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698