Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/chromeos/login/cookie_fetcher.h

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/client_login_response_handler.cc ('k') | chrome/browser/chromeos/login/cookie_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698