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