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

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

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares Created 9 years, 1 month 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_CLIENT_LOGIN_RESPONSE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_CLIENT_LOGIN_RESPONSE_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CLIENT_LOGIN_RESPONSE_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_CLIENT_LOGIN_RESPONSE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 virtual ~ClientLoginResponseHandler() {} 28 virtual ~ClientLoginResponseHandler() {}
29 29
30 // Overridden from AuthResponseHandler. 30 // Overridden from AuthResponseHandler.
31 virtual bool CanHandle(const GURL& url); 31 virtual bool CanHandle(const GURL& url);
32 32
33 // Overridden from AuthResponseHandler. 33 // Overridden from AuthResponseHandler.
34 // Takes in a response from ClientLogin, formats into an appropriate query 34 // Takes in a response from ClientLogin, formats into an appropriate query
35 // to sent to IssueAuthToken and issues said query. |catcher| will receive 35 // to sent to IssueAuthToken and issues said query. |catcher| will receive
36 // the response to the fetch. 36 // the response to the fetch.
37 virtual URLFetcher* Handle(const std::string& to_process, 37 virtual URLFetcher* Handle(const std::string& to_process,
38 URLFetcher::Delegate* catcher); 38 content::URLFetcherDelegate* catcher);
39 39
40 // exposed for tests. 40 // exposed for tests.
41 std::string payload() { return payload_; } 41 std::string payload() { return payload_; }
42 42
43 // A string that tells the Accounts backend to which service we're trying to 43 // A string that tells the Accounts backend to which service we're trying to
44 // authenticate. 44 // authenticate.
45 static const char kService[]; 45 static const char kService[];
46 private: 46 private:
47 std::string payload_; 47 std::string payload_;
48 net::URLRequestContextGetter* getter_; 48 net::URLRequestContextGetter* getter_;
49 49
50 DISALLOW_COPY_AND_ASSIGN(ClientLoginResponseHandler); 50 DISALLOW_COPY_AND_ASSIGN(ClientLoginResponseHandler);
51 }; 51 };
52 52
53 } // namespace chromeos 53 } // namespace chromeos
54 54
55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CLIENT_LOGIN_RESPONSE_HANDLER_H_ 55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_CLIENT_LOGIN_RESPONSE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698