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