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

Side by Side Diff: chrome/service/cloud_print/job_status_updater.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_JOB_STATUS_UPDATER_H_ 5 #ifndef CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
6 #define CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ 6 #define CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 const GURL& cloud_print_server_url, 38 const GURL& cloud_print_server_url,
39 cloud_print::PrintSystem* print_system, 39 cloud_print::PrintSystem* print_system,
40 Delegate* delegate); 40 Delegate* delegate);
41 41
42 // Checks the status of the local print job and sends an update. 42 // Checks the status of the local print job and sends an update.
43 void UpdateStatus(); 43 void UpdateStatus();
44 void Stop(); 44 void Stop();
45 45
46 // CloudPrintURLFetcher::Delegate implementation. 46 // CloudPrintURLFetcher::Delegate implementation.
47 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( 47 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
48 const content::URLFetcher* source, 48 const net::URLFetcher* source,
49 const GURL& url, 49 const GURL& url,
50 base::DictionaryValue* json_data, 50 base::DictionaryValue* json_data,
51 bool succeeded) OVERRIDE; 51 bool succeeded) OVERRIDE;
52 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE; 52 virtual CloudPrintURLFetcher::ResponseAction OnRequestAuthError() OVERRIDE;
53 virtual std::string GetAuthHeader() OVERRIDE; 53 virtual std::string GetAuthHeader() OVERRIDE;
54 54
55 private: 55 private:
56 friend class base::RefCountedThreadSafe<JobStatusUpdater>; 56 friend class base::RefCountedThreadSafe<JobStatusUpdater>;
57 virtual ~JobStatusUpdater(); 57 virtual ~JobStatusUpdater();
58 58
(...skipping 11 matching lines...) Expand all
70 DISALLOW_COPY_AND_ASSIGN(JobStatusUpdater); 70 DISALLOW_COPY_AND_ASSIGN(JobStatusUpdater);
71 }; 71 };
72 72
73 // This typedef is to workaround the issue with certain versions of 73 // This typedef is to workaround the issue with certain versions of
74 // Visual Studio where it gets confused between multiple Delegate 74 // Visual Studio where it gets confused between multiple Delegate
75 // classes and gives a C2500 error. (I saw this error on the try bots - 75 // classes and gives a C2500 error. (I saw this error on the try bots -
76 // the workaround was not needed for my machine). 76 // the workaround was not needed for my machine).
77 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate; 77 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate;
78 78
79 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ 79 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_wipeout.cc ('k') | chrome/service/cloud_print/job_status_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698