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

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

Issue 149181: Move Emf class to the printing library. Also creates a platform agnostic Nat... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/print_job_worker.h" 5 #include "chrome/browser/printing/print_job_worker.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/printing/print_job.h" 8 #include "chrome/browser/printing/print_job.h"
9 #include "chrome/browser/printing/printed_document.h" 9 #include "chrome/browser/printing/printed_document.h"
10 #include "chrome/browser/printing/printed_page.h" 10 #include "chrome/browser/printing/printed_page.h"
11 #include "chrome/common/gfx/emf.h"
12 #include "chrome/common/notification_service.h" 11 #include "chrome/common/notification_service.h"
13 12
14 namespace printing { 13 namespace printing {
15 14
16 class PrintJobWorker::NotificationTask : public Task { 15 class PrintJobWorker::NotificationTask : public Task {
17 public: 16 public:
18 NotificationTask() : print_job_(NULL), details_(NULL) { 17 NotificationTask() : print_job_(NULL), details_(NULL) {
19 } 18 }
20 ~NotificationTask() { 19 ~NotificationTask() {
21 } 20 }
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 printing::PrintJobWorker* obj) { 278 printing::PrintJobWorker* obj) {
280 DCHECK(!owner_.get()); 279 DCHECK(!owner_.get());
281 owner_ = obj->owner_; 280 owner_ = obj->owner_;
282 } 281 }
283 282
284 void RunnableMethodTraits<printing::PrintJobWorker>::ReleaseCallee( 283 void RunnableMethodTraits<printing::PrintJobWorker>::ReleaseCallee(
285 printing::PrintJobWorker* obj) { 284 printing::PrintJobWorker* obj) {
286 DCHECK_EQ(owner_, obj->owner_); 285 DCHECK_EQ(owner_, obj->owner_);
287 owner_ = NULL; 286 owner_ = NULL;
288 } 287 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_manager.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698