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

Side by Side Diff: remoting/host/token_validator_factory_impl.h

Issue 2538183002: remoting: Cleanup class/struct fwd declarations (Closed)
Patch Set: Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_ 5 #ifndef REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_
6 #define REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_ 6 #define REMOTING_HOST_TOKEN_VALIDATOR_FACTORY_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "net/url_request/url_request_context_getter.h" 12 #include "net/url_request/url_request_context_getter.h"
13 #include "remoting/host/token_validator_base.h" 13 #include "remoting/host/token_validator_base.h"
14 #include "remoting/protocol/token_validator.h" 14 #include "remoting/protocol/token_validator.h"
15 15
16 namespace remoting { 16 namespace remoting {
17 17
18 class RsaKeyPair;
19
18 // This class dispenses |TokenValidator| implementations that use a UrlFetcher 20 // This class dispenses |TokenValidator| implementations that use a UrlFetcher
19 // to contact a |token_validation_url| and exchange the |token| for a 21 // to contact a |token_validation_url| and exchange the |token| for a
20 // |shared_secret|. 22 // |shared_secret|.
21 class TokenValidatorFactoryImpl : public protocol::TokenValidatorFactory { 23 class TokenValidatorFactoryImpl : public protocol::TokenValidatorFactory {
22 public: 24 public:
23 // Creates a new factory. |token_url| and |token_validation_url| are the 25 // Creates a new factory. |token_url| and |token_validation_url| are the
24 // third party authentication service URLs, obtained via policy. |key_pair_| 26 // third party authentication service URLs, obtained via policy. |key_pair_|
25 // is used by the host to authenticate with the service by signing the token. 27 // is used by the host to authenticate with the service by signing the token.
26 TokenValidatorFactoryImpl( 28 TokenValidatorFactoryImpl(
27 const ThirdPartyAuthConfig& third_party_auth_config, 29 const ThirdPartyAuthConfig& third_party_auth_config,
(...skipping 11 matching lines...) Expand all
39 ThirdPartyAuthConfig third_party_auth_config_; 41 ThirdPartyAuthConfig third_party_auth_config_;
40 scoped_refptr<RsaKeyPair> key_pair_; 42 scoped_refptr<RsaKeyPair> key_pair_;
41 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; 43 scoped_refptr<net::URLRequestContextGetter> request_context_getter_;
42 44
43 DISALLOW_COPY_AND_ASSIGN(TokenValidatorFactoryImpl); 45 DISALLOW_COPY_AND_ASSIGN(TokenValidatorFactoryImpl);
44 }; 46 };
45 47
46 } // namespace remoting 48 } // namespace remoting
47 49
48 #endif // REMOTING_HOST_URL_FETCHER_TOKEN_VALIDATOR_FACTORY_H_ 50 #endif // REMOTING_HOST_URL_FETCHER_TOKEN_VALIDATOR_FACTORY_H_
OLDNEW
« no previous file with comments | « remoting/host/setup/me2me_native_messaging_host.h ('k') | remoting/host/win/worker_process_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698