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

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

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months 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
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.h ('k') | remoting/host/oauth_token_getter_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" 10 #include "base/basictypes.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 scoped_ptr<OAuthCredentials> oauth_credentials_; 55 scoped_ptr<OAuthCredentials> oauth_credentials_;
56 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_; 56 scoped_ptr<gaia::GaiaOAuthClient> gaia_oauth_client_;
57 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_; 57 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
58 58
59 bool refreshing_oauth_token_ = false; 59 bool refreshing_oauth_token_ = false;
60 bool email_verified_ = false; 60 bool email_verified_ = false;
61 std::string oauth_access_token_; 61 std::string oauth_access_token_;
62 base::Time auth_token_expiry_time_; 62 base::Time auth_token_expiry_time_;
63 std::queue<OAuthTokenGetter::TokenCallback> pending_callbacks_; 63 std::queue<OAuthTokenGetter::TokenCallback> pending_callbacks_;
64 scoped_ptr<base::OneShotTimer<OAuthTokenGetterImpl>> refresh_timer_; 64 scoped_ptr<base::OneShotTimer> refresh_timer_;
65 }; 65 };
66 66
67 } // namespace remoting 67 } // namespace remoting
68 68
69 #endif // REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_ 69 #endif // REMOTING_HOST_OAUTH_TOKEN_GETTER_IMPL_H_
OLDNEW
« no previous file with comments | « remoting/host/linux/audio_pipe_reader.h ('k') | remoting/host/oauth_token_getter_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698