OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
11 #include "chrome/browser/chromeos/login/auth_response_handler.h" | 11 #include "chrome/browser/chromeos/login/auth_response_handler.h" |
12 #include "chrome/browser/chromeos/login/client_login_response_handler.h" | 12 #include "chrome/browser/chromeos/login/client_login_response_handler.h" |
13 #include "chrome/browser/chromeos/login/issue_response_handler.h" | 13 #include "chrome/browser/chromeos/login/issue_response_handler.h" |
14 #include "chrome/browser/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/net/url_fetcher.h" | 15 #include "chrome/common/net/url_fetcher.h" |
16 | 16 |
17 namespace chromeos { | 17 namespace chromeos { |
18 | 18 |
19 // Given a SID/LSID pair, this class will attempt to turn them into a | 19 // Given a SID/LSID pair, this class will attempt to turn them into a |
20 // full-fledged set of Google AuthN cookies. | 20 // full-fledged set of Google AuthN cookies. |
21 // | 21 // |
22 // A CookieFetcher manages its own lifecycle. It deletes itself once it's | 22 // A CookieFetcher manages its own lifecycle. It deletes itself once it's |
23 // done attempting to fetch URLs. | 23 // done attempting to fetch URLs. |
24 class CookieFetcher : public URLFetcher::Delegate { | 24 class CookieFetcher : public URLFetcher::Delegate { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 Profile* profile_; | 58 Profile* profile_; |
59 scoped_ptr<AuthResponseHandler> client_login_handler_; | 59 scoped_ptr<AuthResponseHandler> client_login_handler_; |
60 scoped_ptr<AuthResponseHandler> issue_handler_; | 60 scoped_ptr<AuthResponseHandler> issue_handler_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(CookieFetcher); | 62 DISALLOW_COPY_AND_ASSIGN(CookieFetcher); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace chromeos | 65 } // namespace chromeos |
66 | 66 |
67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ |
OLD | NEW |