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

Issue 2691093006: Implement IPP Get-Jobs and Get-Printer-Attributes requests. (Closed)

Created:
3 years, 10 months ago by skau
Modified:
3 years, 9 months ago
Reviewers:
Lei Zhang, Carlson
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement IPP Get-Jobs and Get-Printer-Attributes requests. CUPS provides cupsGetJobs2 but it doesn't provide the necessary fields to report status accurately. Notably, it doesn't provide job-impressions-completed or printer-state-reasons both of which are necessary to differentiate errors. BUG=684853 Review-Url: https://codereview.chromium.org/2691093006 Cr-Commit-Position: refs/heads/master@{#456225} Committed: https://chromium.googlesource.com/chromium/src/+/a26877dfeb89300f2da958471d2ab9f72766cf38

Patch Set 1 #

Patch Set 2 : revisions #

Patch Set 3 : cleanup #

Patch Set 4 : remove unused fields #

Patch Set 5 : s/ipp_util/cups_jobs/ #

Patch Set 6 : assign default values to id and state #

Total comments: 45

Patch Set 7 : address comments #

Patch Set 8 : clean #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Total comments: 34

Patch Set 11 : finish comments from thestig #

Total comments: 2

Patch Set 12 : use a const array #

Unified diffs Side-by-side diffs Delta from patch set Stats (+680 lines, -96 lines) Patch
M chrome/browser/chromeos/printing/cups_print_job_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +68 lines, -21 lines 0 comments Download
M printing/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M printing/backend/cups_connection.h View 1 2 3 4 5 6 2 chunks +11 lines, -19 lines 0 comments Download
M printing/backend/cups_connection.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +47 lines, -53 lines 0 comments Download
M printing/backend/cups_ipp_util.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A printing/backend/cups_jobs.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +139 lines, -0 lines 0 comments Download
A printing/backend/cups_jobs.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +396 lines, -0 lines 0 comments Download

Messages

Total messages: 43 (24 generated)
skau
Please take a look for style and clarity. I need a better name for ipp_util ...
3 years, 10 months ago (2017-02-23 21:55:03 UTC) #2
skau
On 2017/02/23 21:55:03, skau wrote: > Please take a look for style and clarity. I ...
3 years, 10 months ago (2017-02-23 23:12:09 UTC) #3
skau
On 2017/02/23 21:55:03, skau wrote: > Please take a look for style and clarity. I ...
3 years, 10 months ago (2017-02-23 23:12:10 UTC) #4
Carlson
Mostly looks fine, would appreciate a little more explanation in the code of what's going ...
3 years, 10 months ago (2017-02-24 00:02:09 UTC) #5
skau
vitalybuka@: Please review as OWNER of printing/*. justincarlon@: Thanks for the review. PTAL. https://codereview.chromium.org/2691093006/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc File ...
3 years, 9 months ago (2017-02-28 00:59:59 UTC) #7
Carlson
lgtm https://codereview.chromium.org/2691093006/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc File chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc (right): https://codereview.chromium.org/2691093006/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc#newcode252 chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc:252: ScheduleQuery(); On 2017/02/28 00:59:58, skau wrote: > On ...
3 years, 9 months ago (2017-02-28 01:29:47 UTC) #10
Carlson
lgtm https://codereview.chromium.org/2691093006/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc File chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc (right): https://codereview.chromium.org/2691093006/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc#newcode252 chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc:252: ScheduleQuery(); On 2017/02/28 01:29:47, Carlson wrote: > On ...
3 years, 9 months ago (2017-02-28 18:32:02 UTC) #13
skau
Thanks for the review. Comments have been addressed. https://codereview.chromium.org/2691093006/diff/100001/printing/backend/cups_jobs.cc File printing/backend/cups_jobs.cc (right): https://codereview.chromium.org/2691093006/diff/100001/printing/backend/cups_jobs.cc#newcode83 printing/backend/cups_jobs.cc:83: struct ...
3 years, 9 months ago (2017-02-28 19:01:16 UTC) #14
skau
vitalybuka@: Can you take a look when I get a chance? It looks like thestig@ ...
3 years, 9 months ago (2017-03-01 19:36:24 UTC) #21
skau
thestig@: Please review when you get a chance.
3 years, 9 months ago (2017-03-07 22:59:51 UTC) #26
Lei Zhang
Didn't quite finish reading this CL. Just being nitty for the most part. https://codereview.chromium.org/2691093006/diff/180001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc File ...
3 years, 9 months ago (2017-03-07 23:31:29 UTC) #27
Lei Zhang
https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc File printing/backend/cups_jobs.cc (right): https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc#newcode86 printing/backend/cups_jobs.cc:86: std::unique_ptr<ipp_t, void (*)(ipp_t*)> WrapIpp(ipp_t* ipp) { ScopedIpp, like base::win::ScopedComPtr ...
3 years, 9 months ago (2017-03-08 02:02:16 UTC) #28
Lei Zhang
https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc File printing/backend/cups_jobs.cc (right): https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc#newcode86 printing/backend/cups_jobs.cc:86: std::unique_ptr<ipp_t, void (*)(ipp_t*)> WrapIpp(ipp_t* ipp) { On 2017/03/08 02:02:16, ...
3 years, 9 months ago (2017-03-08 02:21:10 UTC) #29
skau
Addressed comments. PTAL. https://codereview.chromium.org/2691093006/diff/180001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc File chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc (right): https://codereview.chromium.org/2691093006/diff/180001/chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc#newcode70 chrome/browser/chromeos/printing/cups_print_job_manager_impl.cc:70: result.success = connection->GetJobs(printer_ids, &(result.queues)); On 2017/03/07 ...
3 years, 9 months ago (2017-03-10 01:07:00 UTC) #30
Lei Zhang
lgtm https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc File printing/backend/cups_jobs.cc (right): https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc#newcode356 printing/backend/cups_jobs.cc:356: std::vector<const char*> printer_attributes = { On 2017/03/10 01:07:00, ...
3 years, 9 months ago (2017-03-10 01:52:53 UTC) #31
Carlson
https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc File printing/backend/cups_jobs.cc (right): https://codereview.chromium.org/2691093006/diff/180001/printing/backend/cups_jobs.cc#newcode356 printing/backend/cups_jobs.cc:356: std::vector<const char*> printer_attributes = { On 2017/03/10 01:52:52, Lei ...
3 years, 9 months ago (2017-03-10 18:00:17 UTC) #32
skau
I've used a constexpr std::array. Upon a reading of https://engdoc.corp.google.com/eng/doc/devguide/cpp/styleguide.shtml?cl=head#Static_and_Global_Variables and http://en.cppreference.com/w/cpp/container/array I believe it ...
3 years, 9 months ago (2017-03-10 21:49:13 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2691093006/220001
3 years, 9 months ago (2017-03-11 00:04:09 UTC) #40
commit-bot: I haz the power
3 years, 9 months ago (2017-03-11 00:13:18 UTC) #43
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/a26877dfeb89300f2da958471d2a...

Powered by Google App Engine
This is Rietveld 408576698