OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ | 5 #ifndef CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ |
6 #define CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ | 6 #define CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/synchronization/waitable_event.h" | 12 #include "base/synchronization/waitable_event.h" |
13 #include "chrome/common/net/gaia/gaia_authenticator.h" | 13 #include "google_apis/gaia/gaia_authenticator.h" |
14 #include "net/url_request/url_fetcher_delegate.h" | 14 #include "net/url_request/url_fetcher_delegate.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class MessageLoopProxy; | 17 class MessageLoopProxy; |
18 } | 18 } |
19 | 19 |
20 // A GaiaAuthenticator implementation to be used in the service process (where | 20 // A GaiaAuthenticator implementation to be used in the service process (where |
21 // we cannot rely on the existence of a Profile) | 21 // we cannot rely on the existence of a Profile) |
22 class ServiceGaiaAuthenticator | 22 class ServiceGaiaAuthenticator |
23 : public base::RefCountedThreadSafe<ServiceGaiaAuthenticator>, | 23 : public base::RefCountedThreadSafe<ServiceGaiaAuthenticator>, |
(...skipping 24 matching lines...) Expand all Loading... |
48 | 48 |
49 base::WaitableEvent http_post_completed_; | 49 base::WaitableEvent http_post_completed_; |
50 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; | 50 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
51 int http_response_code_; | 51 int http_response_code_; |
52 std::string response_data_; | 52 std::string response_data_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(ServiceGaiaAuthenticator); | 54 DISALLOW_COPY_AND_ASSIGN(ServiceGaiaAuthenticator); |
55 }; | 55 }; |
56 | 56 |
57 #endif // CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ | 57 #endif // CHROME_SERVICE_GAIA_SERVICE_GAIA_AUTHENTICATOR_H_ |
OLD | NEW |