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

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

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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) 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_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 30 matching lines...) Expand all
41 virtual ~JobStatusUpdater(); 41 virtual ~JobStatusUpdater();
42 42
43 // Checks the status of the local print job and sends an update. 43 // Checks the status of the local print job and sends an update.
44 void UpdateStatus(); 44 void UpdateStatus();
45 void Stop(); 45 void Stop();
46 46
47 // CloudPrintURLFetcher::Delegate implementation. 47 // CloudPrintURLFetcher::Delegate implementation.
48 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData( 48 virtual CloudPrintURLFetcher::ResponseAction HandleJSONData(
49 const URLFetcher* source, 49 const URLFetcher* source,
50 const GURL& url, 50 const GURL& url,
51 DictionaryValue* json_data, 51 base::DictionaryValue* json_data,
52 bool succeeded); 52 bool succeeded);
53 virtual void OnRequestAuthError(); 53 virtual void OnRequestAuthError();
54 54
55 private: 55 private:
56 std::string printer_name_; 56 std::string printer_name_;
57 std::string job_id_; 57 std::string job_id_;
58 cloud_print::PlatformJobId local_job_id_; 58 cloud_print::PlatformJobId local_job_id_;
59 cloud_print::PrintJobDetails last_job_details_; 59 cloud_print::PrintJobDetails last_job_details_;
60 scoped_refptr<CloudPrintURLFetcher> request_; 60 scoped_refptr<CloudPrintURLFetcher> request_;
61 GURL cloud_print_server_url_; 61 GURL cloud_print_server_url_;
62 scoped_refptr<cloud_print::PrintSystem> print_system_; 62 scoped_refptr<cloud_print::PrintSystem> print_system_;
63 Delegate* delegate_; 63 Delegate* delegate_;
64 // A flag that is set to true in Stop() and will ensure the next scheduled 64 // A flag that is set to true in Stop() and will ensure the next scheduled
65 // task will do nothing. 65 // task will do nothing.
66 bool stopped_; 66 bool stopped_;
67 DISALLOW_COPY_AND_ASSIGN(JobStatusUpdater); 67 DISALLOW_COPY_AND_ASSIGN(JobStatusUpdater);
68 }; 68 };
69 69
70 // This typedef is to workaround the issue with certain versions of 70 // This typedef is to workaround the issue with certain versions of
71 // Visual Studio where it gets confused between multiple Delegate 71 // Visual Studio where it gets confused between multiple Delegate
72 // classes and gives a C2500 error. (I saw this error on the try bots - 72 // classes and gives a C2500 error. (I saw this error on the try bots -
73 // the workaround was not needed for my machine). 73 // the workaround was not needed for my machine).
74 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate; 74 typedef JobStatusUpdater::Delegate JobStatusUpdaterDelegate;
75 75
76 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_ 76 #endif // CHROME_SERVICE_CLOUD_PRINT_JOB_STATUS_UPDATER_H_
OLDNEW
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher_unittest.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