diff options
author | scottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 17:48:29 +0000 |
---|---|---|
committer | scottbyer@chromium.org <scottbyer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 17:48:29 +0000 |
commit | e4ef3ba2250a995ec54cf21252b3c398bba334af (patch) | |
tree | f38278c679e8db4c45bb37a7c301bb9ff6c1ffb5 /chrome/service/cloud_print/job_status_updater.h | |
parent | 3726e12c766353b0cc6aa0ecf8d0f38b62932766 (diff) | |
download | chromium_src-e4ef3ba2250a995ec54cf21252b3c398bba334af.zip chromium_src-e4ef3ba2250a995ec54cf21252b3c398bba334af.tar.gz chromium_src-e4ef3ba2250a995ec54cf21252b3c398bba334af.tar.bz2 |
On behalf of gene@chromium.org. Redesign cloud printing subsystem layer. Make it a class, and allow to have internal state. Also, some minor improvements.
BUG=none
TEST=Try run Windows cloud print proxy and confirm documents get printed.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=49200
Review URL: http://codereview.chromium.org/2519002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/service/cloud_print/job_status_updater.h')
-rw-r--r-- | chrome/service/cloud_print/job_status_updater.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/service/cloud_print/job_status_updater.h b/chrome/service/cloud_print/job_status_updater.h index 870869b..ed4ab21 100644 --- a/chrome/service/cloud_print/job_status_updater.h +++ b/chrome/service/cloud_print/job_status_updater.h @@ -10,7 +10,7 @@ #include "base/file_path.h" #include "base/ref_counted.h" #include "base/thread.h" -#include "chrome/service/cloud_print/printer_info.h" +#include "chrome/service/cloud_print/print_system.h" #include "chrome/common/net/url_fetcher.h" #include "googleurl/src/gurl.h" #include "net/url_request/url_request_status.h" @@ -32,6 +32,7 @@ class JobStatusUpdater : public base::RefCountedThreadSafe<JobStatusUpdater>, cloud_print::PlatformJobId& local_job_id, const std::string& auth_token, const GURL& cloud_print_server_url, + cloud_print::PrintSystem* print_system, Delegate* delegate); // Checks the status of the local print job and sends an update. void UpdateStatus(); @@ -50,6 +51,7 @@ class JobStatusUpdater : public base::RefCountedThreadSafe<JobStatusUpdater>, scoped_ptr<URLFetcher> request_; std::string auth_token_; GURL cloud_print_server_url_; + scoped_refptr<cloud_print::PrintSystem> print_system_; Delegate* delegate_; // A flag that is set to true in Stop() and will ensure the next scheduled // task will do nothing. |