OLD | NEW |
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_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ | 5 #ifndef CONTENT_RENDERER_ORIGIN_TRIALS_WEB_TRIAL_TOKEN_VALIDATOR_IMPL_H_ |
6 #define CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ | 6 #define CONTENT_RENDERER_ORIGIN_TRIALS_WEB_TRIAL_TOKEN_VALIDATOR_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "third_party/WebKit/public/platform/WebTrialTokenValidator.h" | 10 #include "third_party/WebKit/public/platform/WebTrialTokenValidator.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 | 13 |
14 // The TrialTokenValidator is called by the Experimental Framework code in Blink | 14 // The TrialTokenValidator is called by the Experimental Framework code in Blink |
15 // to validate tokens to enable experimental features. | 15 // to validate tokens to enable experimental features. |
16 // | 16 // |
17 // This class is thread-safe. | 17 // This class is thread-safe. |
18 class CONTENT_EXPORT TrialTokenValidator | 18 class CONTENT_EXPORT WebTrialTokenValidatorImpl |
19 : public NON_EXPORTED_BASE(blink::WebTrialTokenValidator) { | 19 : public NON_EXPORTED_BASE(blink::WebTrialTokenValidator) { |
20 public: | 20 public: |
21 TrialTokenValidator(); | 21 WebTrialTokenValidatorImpl(); |
22 ~TrialTokenValidator() override; | 22 ~WebTrialTokenValidatorImpl() override; |
23 | 23 |
24 // blink::WebTrialTokenValidator implementation | 24 // blink::WebTrialTokenValidator implementation |
25 bool validateToken(const blink::WebString& token, | 25 bool validateToken(const blink::WebString& token, |
26 const blink::WebSecurityOrigin& origin, | 26 const blink::WebSecurityOrigin& origin, |
27 const blink::WebString& featureName) override; | 27 const blink::WebString& featureName) override; |
28 | 28 |
29 private: | 29 private: |
30 DISALLOW_COPY_AND_ASSIGN(TrialTokenValidator); | 30 DISALLOW_COPY_AND_ASSIGN(WebTrialTokenValidatorImpl); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace content | 33 } // namespace content |
34 | 34 |
35 #endif // CONTENT_RENDERER_ORIGIN_TRIALS_TRIAL_TOKEN_VALIDATOR_H_ | 35 #endif // CONTENT_RENDERER_ORIGIN_TRIALS_WEB_TRIAL_TOKEN_VALIDATOR_IMPL_H_ |
OLD | NEW |