OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_ACCESS_TOKEN_FETCHER_H_ | 5 #ifndef REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ |
6 #define REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ | 6 #define REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/callback.h" | 10 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
11 #include "google_apis/gaia/gaia_oauth_client.h" | 13 #include "google_apis/gaia/gaia_oauth_client.h" |
12 | 14 |
13 namespace remoting { | 15 namespace remoting { |
14 namespace test { | 16 namespace test { |
15 | 17 |
16 // Supplied by the client for each request to GAIA and returns valid tokens on | 18 // Supplied by the client for each request to GAIA and returns valid tokens on |
17 // success or empty tokens on failure. | 19 // success or empty tokens on failure. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Used to make token requests to GAIA. | 79 // Used to make token requests to GAIA. |
78 scoped_ptr<gaia::GaiaOAuthClient> auth_client_; | 80 scoped_ptr<gaia::GaiaOAuthClient> auth_client_; |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(AccessTokenFetcher); | 82 DISALLOW_COPY_AND_ASSIGN(AccessTokenFetcher); |
81 }; | 83 }; |
82 | 84 |
83 } // namespace test | 85 } // namespace test |
84 } // namespace remoting | 86 } // namespace remoting |
85 | 87 |
86 #endif // REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ | 88 #endif // REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ |
OLD | NEW |