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> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
13 #include "google_apis/gaia/gaia_oauth_client.h" | 14 #include "google_apis/gaia/gaia_oauth_client.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 namespace test { | 17 namespace test { |
17 | 18 |
18 // Supplied by the client for each request to GAIA and returns valid tokens on | 19 // Supplied by the client for each request to GAIA and returns valid tokens on |
19 // success or empty tokens on failure. | 20 // success or empty tokens on failure. |
20 typedef base::Callback<void(const std::string& access_token, | 21 typedef base::Callback<void(const std::string& access_token, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Used to make token requests to GAIA. | 80 // Used to make token requests to GAIA. |
80 scoped_ptr<gaia::GaiaOAuthClient> auth_client_; | 81 scoped_ptr<gaia::GaiaOAuthClient> auth_client_; |
81 | 82 |
82 DISALLOW_COPY_AND_ASSIGN(AccessTokenFetcher); | 83 DISALLOW_COPY_AND_ASSIGN(AccessTokenFetcher); |
83 }; | 84 }; |
84 | 85 |
85 } // namespace test | 86 } // namespace test |
86 } // namespace remoting | 87 } // namespace remoting |
87 | 88 |
88 #endif // REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ | 89 #endif // REMOTING_TEST_ACCESS_TOKEN_FETCHER_H_ |
OLD | NEW |