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

Side by Side Diff: chrome/service/cloud_print/cloud_print_wipeout.h

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 years, 7 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_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 13 matching lines...) Expand all
24 }; 24 };
25 25
26 CloudPrintWipeout(Client* client, const GURL& cloud_print_server_url); 26 CloudPrintWipeout(Client* client, const GURL& cloud_print_server_url);
27 virtual ~CloudPrintWipeout(); 27 virtual ~CloudPrintWipeout();
28 28
29 void UnregisterPrinters(const std::string& auth_token, 29 void UnregisterPrinters(const std::string& auth_token,
30 const std::list<std::string>& printer_ids); 30 const std::list<std::string>& printer_ids);
31 31
32 // CloudPrintURLFetcher::Delegate implementation. 32 // CloudPrintURLFetcher::Delegate implementation.
33 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( 33 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
34 const content::URLFetcher* source, 34 const net::URLFetcher* source,
35 const GURL& url, 35 const GURL& url,
36 base::DictionaryValue* json_data, 36 base::DictionaryValue* json_data,
37 bool succeeded) OVERRIDE; 37 bool succeeded) OVERRIDE;
38 virtual void OnRequestGiveUp() OVERRIDE; 38 virtual void OnRequestGiveUp() OVERRIDE;
39 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; 39 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
40 virtual std::string GetAuthHeader() OVERRIDE; 40 virtual std::string GetAuthHeader() OVERRIDE;
41 41
42 private: 42 private:
43 void UnregisterNextPrinter(); 43 void UnregisterNextPrinter();
44 44
45 // CloudPrintWipeout client. 45 // CloudPrintWipeout client.
46 Client* client_; 46 Client* client_;
47 // Cloud Print server url. 47 // Cloud Print server url.
48 GURL cloud_print_server_url_; 48 GURL cloud_print_server_url_;
49 // The CloudPrintURLFetcher instance for the current request. 49 // The CloudPrintURLFetcher instance for the current request.
50 scoped_refptr<CloudPrintURLFetcher> request_; 50 scoped_refptr<CloudPrintURLFetcher> request_;
51 // Auth token. 51 // Auth token.
52 std::string auth_token_; 52 std::string auth_token_;
53 // List of printer to unregister 53 // List of printer to unregister
54 std::list<std::string> printer_ids_; 54 std::list<std::string> printer_ids_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(CloudPrintWipeout); 56 DISALLOW_COPY_AND_ASSIGN(CloudPrintWipeout);
57 }; 57 };
58 58
59 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_ 59 #endif // CHROME_SERVICE_CLOUD_PRINT_CLOUD_PRINT_WIPEOUT_H_
60 60
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher_unittest.cc ('k') | chrome/service/cloud_print/cloud_print_wipeout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698