OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CLIENT_TOKEN_FETCHER_PROXY_H_ | 5 #ifndef REMOTING_CLIENT_TOKEN_FETCHER_PROXY_H_ |
6 #define REMOTING_CLIENT_TOKEN_FETCHER_PROXY_H_ | 6 #define REMOTING_CLIENT_TOKEN_FETCHER_PROXY_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "remoting/protocol/third_party_client_authenticator.h" | 11 #include "remoting/protocol/third_party_client_authenticator.h" |
11 | 12 |
12 namespace remoting { | 13 namespace remoting { |
13 | 14 |
14 class TokenFetcherProxy | 15 class TokenFetcherProxy |
15 : public protocol::ThirdPartyClientAuthenticator::TokenFetcher { | 16 : public protocol::ThirdPartyClientAuthenticator::TokenFetcher { |
16 public: | 17 public: |
17 typedef base::Callback<void( | 18 typedef base::Callback<void( |
18 const GURL& token_url, | 19 const GURL& token_url, |
(...skipping 20 matching lines...) Expand all Loading... |
39 TokenFetcherCallback token_fetcher_impl_; | 40 TokenFetcherCallback token_fetcher_impl_; |
40 TokenFetchedCallback token_fetched_callback_; | 41 TokenFetchedCallback token_fetched_callback_; |
41 base::WeakPtrFactory<TokenFetcherProxy> weak_factory_; | 42 base::WeakPtrFactory<TokenFetcherProxy> weak_factory_; |
42 | 43 |
43 DISALLOW_COPY_AND_ASSIGN(TokenFetcherProxy); | 44 DISALLOW_COPY_AND_ASSIGN(TokenFetcherProxy); |
44 }; | 45 }; |
45 | 46 |
46 } // namespace remoting | 47 } // namespace remoting |
47 | 48 |
48 #endif // REMOTING_CLIENT_TOKEN_FETCHER_PROXY_H_ | 49 #endif // REMOTING_CLIENT_TOKEN_FETCHER_PROXY_H_ |
OLD | NEW |