OLD | NEW |
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 #include "remoting/host/setup/oauth_client.h" | 5 #include "remoting/host/setup/oauth_client.h" |
6 | 6 |
| 7 #include "base/logging.h" |
| 8 |
7 namespace { | 9 namespace { |
8 const int kMaxGaiaRetries = 3; | 10 const int kMaxGaiaRetries = 3; |
9 } // namespace | 11 } // namespace |
10 | 12 |
11 namespace remoting { | 13 namespace remoting { |
12 | 14 |
13 OAuthClient::OAuthClient( | 15 OAuthClient::OAuthClient( |
14 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) | 16 scoped_refptr<net::URLRequestContextGetter> url_request_context_getter) |
15 : gaia_oauth_client_(url_request_context_getter) { | 17 : gaia_oauth_client_(url_request_context_getter) { |
16 } | 18 } |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 CompletionCallback on_done) { | 86 CompletionCallback on_done) { |
85 this->oauth_client_info = oauth_client_info; | 87 this->oauth_client_info = oauth_client_info; |
86 this->auth_code = auth_code; | 88 this->auth_code = auth_code; |
87 this->on_done = on_done; | 89 this->on_done = on_done; |
88 } | 90 } |
89 | 91 |
90 OAuthClient::Request::~Request() { | 92 OAuthClient::Request::~Request() { |
91 } | 93 } |
92 | 94 |
93 } // namespace remoting | 95 } // namespace remoting |
OLD | NEW |