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

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

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/printer_query.h" 5 #include "chrome/browser/printing/printer_query.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/printing/print_job_worker.h" 8 #include "chrome/browser/printing/print_job_worker.h"
9 9
10 namespace printing { 10 namespace printing {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 PrintJobWorker* PrinterQuery::DetachWorker(PrintJobWorkerOwner* new_owner) { 51 PrintJobWorker* PrinterQuery::DetachWorker(PrintJobWorkerOwner* new_owner) {
52 DCHECK(!callback_.get()); 52 DCHECK(!callback_.get());
53 DCHECK(worker_.get()); 53 DCHECK(worker_.get());
54 if (!worker_.get()) 54 if (!worker_.get())
55 return NULL; 55 return NULL;
56 worker_->SetNewOwner(new_owner); 56 worker_->SetNewOwner(new_owner);
57 return worker_.release(); 57 return worker_.release();
58 } 58 }
59 59
60 MessageLoop* PrinterQuery::message_loop() {
61 return io_message_loop_;
62 }
63
64 const PrintSettings& PrinterQuery::settings() const {
65 return settings_;
66 }
67
68 int PrinterQuery::cookie() const {
69 return cookie_;
70 }
71
60 void PrinterQuery::GetSettings(GetSettingsAskParam ask_user_for_settings, 72 void PrinterQuery::GetSettings(GetSettingsAskParam ask_user_for_settings,
61 gfx::NativeView parent_view, 73 gfx::NativeView parent_view,
62 int expected_page_count, 74 int expected_page_count,
63 bool has_selection, 75 bool has_selection,
64 bool use_overlays, 76 bool use_overlays,
65 CancelableTask* callback) { 77 CancelableTask* callback) {
66 DCHECK_EQ(io_message_loop_, MessageLoop::current()); 78 DCHECK_EQ(io_message_loop_, MessageLoop::current());
67 DCHECK(!is_print_dialog_box_shown_); 79 DCHECK(!is_print_dialog_box_shown_);
68 DCHECK(!callback_.get()); 80 DCHECK(!callback_.get());
69 DCHECK(worker_.get()); 81 DCHECK(worker_.get());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 119
108 bool PrinterQuery::is_callback_pending() const { 120 bool PrinterQuery::is_callback_pending() const {
109 return callback_.get() != NULL; 121 return callback_.get() != NULL;
110 } 122 }
111 123
112 bool PrinterQuery::is_valid() const { 124 bool PrinterQuery::is_valid() const {
113 return worker_.get() != NULL; 125 return worker_.get() != NULL;
114 } 126 }
115 127
116 } // namespace printing 128 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/printing/printer_query.h ('k') | chrome/browser/remoting/remoting_resources_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698