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

Side by Side Diff: chrome/browser/policy/user_info_fetcher.h

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_POLICY_USER_INFO_FETCHER_H_ 5 #ifndef CHROME_BROWSER_POLICY_USER_INFO_FETCHER_H_
6 #define CHROME_BROWSER_POLICY_USER_INFO_FETCHER_H_ 6 #define CHROME_BROWSER_POLICY_USER_INFO_FETCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "net/url_request/url_fetcher_delegate.h" 10 #include "net/url_request/url_fetcher_delegate.h"
(...skipping 10 matching lines...) Expand all
21 } 21 }
22 22
23 namespace policy { 23 namespace policy {
24 24
25 // Class that makes a UserInfo request, parses the response, and notifies 25 // Class that makes a UserInfo request, parses the response, and notifies
26 // a provided Delegate when the request is complete. 26 // a provided Delegate when the request is complete.
27 class UserInfoFetcher : public net::URLFetcherDelegate { 27 class UserInfoFetcher : public net::URLFetcherDelegate {
28 public: 28 public:
29 class Delegate { 29 class Delegate {
30 public: 30 public:
31 virtual ~Delegate() { }
32
33 // Invoked when the UserInfo request has succeeded, passing the parsed 31 // Invoked when the UserInfo request has succeeded, passing the parsed
34 // response in |response|. Delegate may free the UserInfoFetcher in this 32 // response in |response|. Delegate may free the UserInfoFetcher in this
35 // callback. 33 // callback.
36 virtual void OnGetUserInfoSuccess( 34 virtual void OnGetUserInfoSuccess(
37 const base::DictionaryValue* response) = 0; 35 const base::DictionaryValue* response) = 0;
38 36
39 // Invoked when the UserInfo request has failed, passing the associated 37 // Invoked when the UserInfo request has failed, passing the associated
40 // error in |error|. Delegate may free the UserInfoFetcher in this 38 // error in |error|. Delegate may free the UserInfoFetcher in this
41 // callback. 39 // callback.
42 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) = 0; 40 virtual void OnGetUserInfoFailure(const GoogleServiceAuthError& error) = 0;
(...skipping 13 matching lines...) Expand all
56 Delegate* delegate_; 54 Delegate* delegate_;
57 net::URLRequestContextGetter* context_; 55 net::URLRequestContextGetter* context_;
58 scoped_ptr<net::URLFetcher> url_fetcher_; 56 scoped_ptr<net::URLFetcher> url_fetcher_;
59 57
60 DISALLOW_COPY_AND_ASSIGN(UserInfoFetcher); 58 DISALLOW_COPY_AND_ASSIGN(UserInfoFetcher);
61 }; 59 };
62 60
63 } // namespace policy 61 } // namespace policy
64 62
65 #endif // CHROME_BROWSER_POLICY_USER_INFO_FETCHER_H_ 63 #endif // CHROME_BROWSER_POLICY_USER_INFO_FETCHER_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/variations/resource_request_allowed_notifier.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698