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 |
(...skipping 24 matching lines...) Expand all Loading... |
35 AuthResponseHandler* i_handler); | 35 AuthResponseHandler* i_handler); |
36 | 36 |
37 // Given a newline-delineated SID/LSID pair of Google cookies (like | 37 // Given a newline-delineated SID/LSID pair of Google cookies (like |
38 // those that come back from ClientLogin), try to use them to fetch | 38 // those that come back from ClientLogin), try to use them to fetch |
39 // a full-fledged set of Google AuthN cookies. These cookies will wind up | 39 // a full-fledged set of Google AuthN cookies. These cookies will wind up |
40 // stored in the cookie jar associated with |profile_|, if we get them. | 40 // stored in the cookie jar associated with |profile_|, if we get them. |
41 // Either way, we end up by calling launcher_->DoLaunch() | 41 // Either way, we end up by calling launcher_->DoLaunch() |
42 void AttemptFetch(const std::string& credentials); | 42 void AttemptFetch(const std::string& credentials); |
43 | 43 |
44 // Overloaded from content::URLFetcherDelegate. | 44 // Overloaded from content::URLFetcherDelegate. |
45 virtual void OnURLFetchComplete(const URLFetcher* source); | 45 virtual void OnURLFetchComplete(const content::URLFetcher* source); |
46 | 46 |
47 private: | 47 private: |
48 virtual ~CookieFetcher(); | 48 virtual ~CookieFetcher(); |
49 | 49 |
50 scoped_ptr<URLFetcher> fetcher_; | 50 scoped_ptr<content::URLFetcher> fetcher_; |
51 Profile* profile_; | 51 Profile* profile_; |
52 scoped_ptr<AuthResponseHandler> client_login_handler_; | 52 scoped_ptr<AuthResponseHandler> client_login_handler_; |
53 scoped_ptr<AuthResponseHandler> issue_handler_; | 53 scoped_ptr<AuthResponseHandler> issue_handler_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(CookieFetcher); | 55 DISALLOW_COPY_AND_ASSIGN(CookieFetcher); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace chromeos | 58 } // namespace chromeos |
59 | 59 |
60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ | 60 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ |
OLD | NEW |