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

Side by Side Diff: chrome/browser/printing/print_job_worker.h

Issue 506273004: Removed redundant PrintingUIWebContentsObserver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tue Aug 26 14:12:01 PDT 2014 Created 6 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
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Reports settings back to owner_. 126 // Reports settings back to owner_.
127 void GetSettingsDone(PrintingContext::Result result); 127 void GetSettingsDone(PrintingContext::Result result);
128 128
129 // Use the default settings. When using GTK+ or Mac, this can still end up 129 // Use the default settings. When using GTK+ or Mac, this can still end up
130 // displaying a dialog. So this needs to happen from the UI thread on these 130 // displaying a dialog. So this needs to happen from the UI thread on these
131 // systems. 131 // systems.
132 void UseDefaultSettings(); 132 void UseDefaultSettings();
133 133
134 // Printing context delegate. 134 // Printing context delegate.
135 scoped_ptr<PrintingContext::Delegate, 135 scoped_ptr<PrintingContext::Delegate> printing_context_delegate_;
136 content::BrowserThread::DeleteOnUIThread>
137 printing_context_delegate_;
138 136
139 // Information about the printer setting. 137 // Information about the printer setting.
140 scoped_ptr<PrintingContext> printing_context_; 138 scoped_ptr<PrintingContext> printing_context_;
141 139
142 // The printed document. Only has read-only access. 140 // The printed document. Only has read-only access.
143 scoped_refptr<PrintedDocument> document_; 141 scoped_refptr<PrintedDocument> document_;
144 142
145 // The print destination, may be NULL. 143 // The print destination, may be NULL.
146 scoped_refptr<PrintDestinationInterface> destination_; 144 scoped_refptr<PrintDestinationInterface> destination_;
147 145
(...skipping 12 matching lines...) Expand all
160 158
161 // Used to generate a WeakPtr for callbacks. 159 // Used to generate a WeakPtr for callbacks.
162 base::WeakPtrFactory<PrintJobWorker> weak_factory_; 160 base::WeakPtrFactory<PrintJobWorker> weak_factory_;
163 161
164 DISALLOW_COPY_AND_ASSIGN(PrintJobWorker); 162 DISALLOW_COPY_AND_ASSIGN(PrintJobWorker);
165 }; 163 };
166 164
167 } // namespace printing 165 } // namespace printing
168 166
169 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_ 167 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_job_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698