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

Unified Diff: printing/printing_context.h

Issue 2692923006: Add job id to JobEventDetails. (Closed)
Patch Set: Created 3 years, 10 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 | « chrome/browser/printing/print_job_worker.cc ('k') | printing/printing_context_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing_context.h
diff --git a/printing/printing_context.h b/printing/printing_context.h
index 6335461b06d1f9c02c66900832388b7f91d7d79d..362dfe9ba6b2cf588fd02b3e9184431b7a91bbc4 100644
--- a/printing/printing_context.h
+++ b/printing/printing_context.h
@@ -125,6 +125,8 @@ class PRINTING_EXPORT PrintingContext {
return settings_;
}
+ int job_id() const { return job_id_; }
+
protected:
explicit PrintingContext(Delegate* delegate);
@@ -146,6 +148,9 @@ class PRINTING_EXPORT PrintingContext {
// Did the user cancel the print job.
volatile bool abort_printing_;
+ // The job id for the current job. The value is 0 if no jobs are active.
+ int job_id_;
+
private:
DISALLOW_COPY_AND_ASSIGN(PrintingContext);
};
« no previous file with comments | « chrome/browser/printing/print_job_worker.cc ('k') | printing/printing_context_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698