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

Side by Side Diff: chrome/browser/printing/printing_message_filter.cc

Issue 10873097: Merge 153342 - Print preview: Use an ID instead of memory pointer string in WebUI. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1229/src/
Patch Set: Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/printing/printing_message_filter.h" 5 #include "chrome/browser/printing/printing_message_filter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 Send(reply_msg); 367 Send(reply_msg);
368 // If user hasn't cancelled. 368 // If user hasn't cancelled.
369 if (printer_query.get()) { 369 if (printer_query.get()) {
370 if (printer_query->cookie() && printer_query->settings().dpi()) 370 if (printer_query->cookie() && printer_query->settings().dpi())
371 print_job_manager_->QueuePrinterQuery(printer_query.get()); 371 print_job_manager_->QueuePrinterQuery(printer_query.get());
372 else 372 else
373 printer_query->StopWorker(); 373 printer_query->StopWorker();
374 } 374 }
375 } 375 }
376 376
377 void PrintingMessageFilter::OnCheckForCancel(const std::string& preview_ui_addr, 377 void PrintingMessageFilter::OnCheckForCancel(int32 preview_ui_id,
378 int preview_request_id, 378 int preview_request_id,
379 bool* cancel) { 379 bool* cancel) {
380 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_addr, 380 PrintPreviewUI::GetCurrentPrintPreviewStatus(preview_ui_id,
381 preview_request_id, 381 preview_request_id,
382 cancel); 382 cancel);
383 } 383 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/printing_message_filter.h ('k') | chrome/browser/resources/print_preview/native_layer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698