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

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

Issue 6056007: net: Add namespace net to the remaining files under url_request directory. (Closed)
Patch Set: chromeos fixes Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 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 #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"
(...skipping 28 matching lines...) Expand all
40 // Given a newline-delineated SID/LSID pair of Google cookies (like 40 // Given a newline-delineated SID/LSID pair of Google cookies (like
41 // those that come back from ClientLogin), try to use them to fetch 41 // those that come back from ClientLogin), try to use them to fetch
42 // a full-fledged set of Google AuthN cookies. These cookies will wind up 42 // a full-fledged set of Google AuthN cookies. These cookies will wind up
43 // stored in the cookie jar associated with |profile_|, if we get them. 43 // stored in the cookie jar associated with |profile_|, if we get them.
44 // Either way, we end up by calling launcher_->DoLaunch() 44 // Either way, we end up by calling launcher_->DoLaunch()
45 void AttemptFetch(const std::string& credentials); 45 void AttemptFetch(const std::string& credentials);
46 46
47 // Overloaded from URLFetcher::Delegate. 47 // Overloaded from URLFetcher::Delegate.
48 virtual void OnURLFetchComplete(const URLFetcher* source, 48 virtual void OnURLFetchComplete(const URLFetcher* source,
49 const GURL& url, 49 const GURL& url,
50 const URLRequestStatus& status, 50 const net::URLRequestStatus& status,
51 int response_code, 51 int response_code,
52 const ResponseCookies& cookies, 52 const ResponseCookies& cookies,
53 const std::string& data); 53 const std::string& data);
54 54
55 private: 55 private:
56 virtual ~CookieFetcher() {} 56 virtual ~CookieFetcher() {}
57 57
58 scoped_ptr<URLFetcher> fetcher_; 58 scoped_ptr<URLFetcher> fetcher_;
59 Profile* profile_; 59 Profile* profile_;
60 scoped_ptr<AuthResponseHandler> client_login_handler_; 60 scoped_ptr<AuthResponseHandler> client_login_handler_;
61 scoped_ptr<AuthResponseHandler> issue_handler_; 61 scoped_ptr<AuthResponseHandler> issue_handler_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(CookieFetcher); 63 DISALLOW_COPY_AND_ASSIGN(CookieFetcher);
64 }; 64 };
65 65
66 } // namespace chromeos 66 } // namespace chromeos
67 67
68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_ 68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_COOKIE_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/apply_services_customization.cc ('k') | chrome/browser/chromeos/login/image_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698