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

Unified Diff: cloud_print/gcp20/prototype/printer.h

Issue 23271004: GCP2.0 Device: Adding advanced printing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@local-printing
Patch Set: Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/gcp20/prototype/print_job_handler.cc ('k') | cloud_print/gcp20/prototype/printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/printer.h
diff --git a/cloud_print/gcp20/prototype/printer.h b/cloud_print/gcp20/prototype/printer.h
index ccc97b320b23691fad63632e63e4ec5a52ae3721..69e8874db71d70e24ce7a75f3fd4419b566b990d 100644
--- a/cloud_print/gcp20/prototype/printer.h
+++ b/cloud_print/gcp20/prototype/printer.h
@@ -20,8 +20,6 @@
extern const base::FilePath::CharType kPrinterStatePath[];
-struct LocalPrintJob;
-
// This class maintains work of DNS-SD server, HTTP server and others.
class Printer : public base::SupportsWeakPtr<Printer>,
public PrivetHttpServer::Delegate,
@@ -74,13 +72,26 @@ class Printer : public base::SupportsWeakPtr<Printer>,
virtual bool IsLocalPrintingAllowed() const OVERRIDE;
virtual bool CheckXPrivetTokenHeader(const std::string& token) const OVERRIDE;
virtual scoped_ptr<base::DictionaryValue> GetCapabilities() OVERRIDE;
- virtual void CreateJob(const std::string& ticket) OVERRIDE;
+ virtual LocalPrintJob::CreateResult CreateJob(
+ const std::string& ticket,
+ std::string* job_id,
+ int* expires_in,
+ int* error_timeout,
+ std::string* error_description) OVERRIDE;
virtual LocalPrintJob::SaveResult SubmitDoc(
const LocalPrintJob& job,
std::string* job_id,
+ int* expires_in,
+ std::string* error_description,
+ int* timeout) OVERRIDE;
+ virtual LocalPrintJob::SaveResult SubmitDocWithId(
+ const LocalPrintJob& job,
+ const std::string& job_id,
+ int* expires_in,
std::string* error_description,
int* timeout) OVERRIDE;
- virtual void GetJobStatus(int job_id) OVERRIDE;
+ virtual bool GetJobState(const std::string& id,
+ LocalPrintJob::Info* info) OVERRIDE;
// CloudRequester::Delegate methods:
virtual void OnRegistrationStartResponseParsed(
« no previous file with comments | « cloud_print/gcp20/prototype/print_job_handler.cc ('k') | cloud_print/gcp20/prototype/printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698