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_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ | 5 #ifndef REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ |
6 #define REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ | 6 #define REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/basictypes.h" | |
11 #include "base/callback.h" | 10 #include "base/callback.h" |
12 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
13 #include "base/time/time.h" | 12 #include "base/time/time.h" |
14 #include "base/timer/timer.h" | 13 #include "base/timer/timer.h" |
15 #include "google_apis/gaia/gaia_oauth_client.h" | 14 #include "google_apis/gaia/gaia_oauth_client.h" |
16 #include "remoting/host/oauth_token_getter.h" | 15 #include "remoting/host/oauth_token_getter.h" |
17 | 16 |
18 namespace net { | 17 namespace net { |
19 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
20 } // namespace net | 19 } // namespace net |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 bool email_verified_ = false; | 60 bool email_verified_ = false; |
62 std::string oauth_access_token_; | 61 std::string oauth_access_token_; |
63 base::Time auth_token_expiry_time_; | 62 base::Time auth_token_expiry_time_; |
64 std::queue<OAuthTokenGetter::TokenCallback> pending_callbacks_; | 63 std::queue<OAuthTokenGetter::TokenCallback> pending_callbacks_; |
65 scoped_ptr<base::OneShotTimer> refresh_timer_; | 64 scoped_ptr<base::OneShotTimer> refresh_timer_; |
66 }; | 65 }; |
67 | 66 |
68 } // namespace remoting | 67 } // namespace remoting |
69 | 68 |
70 #endif // REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ | 69 #endif // REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ |
OLD | NEW |