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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/printing/print_job.h" 10 #include "chrome/browser/printing/print_job.h"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "printing/print_job_constants.h" 14 #include "printing/print_job_constants.h"
15 #include "printing/printed_document.h" 15 #include "printing/printed_document.h"
16 #include "printing/printed_page.h" 16 #include "printing/printed_page.h"
17 17
18 using content::BrowserThread;
19
18 namespace printing { 20 namespace printing {
19 21
20 class PrintJobWorker::NotificationTask : public Task { 22 class PrintJobWorker::NotificationTask : public Task {
21 public: 23 public:
22 NotificationTask() : print_job_(NULL), details_(NULL) { 24 NotificationTask() : print_job_(NULL), details_(NULL) {
23 } 25 }
24 ~NotificationTask() { 26 ~NotificationTask() {
25 } 27 }
26 28
27 // Initializes the object. This object can't be initialized in the constructor 29 // Initializes the object. This object can't be initialized in the constructor
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 printing::PrintJobWorker* obj) { 359 printing::PrintJobWorker* obj) {
358 DCHECK(!owner_.get()); 360 DCHECK(!owner_.get());
359 owner_ = obj->owner_; 361 owner_ = obj->owner_;
360 } 362 }
361 363
362 void RunnableMethodTraits<printing::PrintJobWorker>::ReleaseCallee( 364 void RunnableMethodTraits<printing::PrintJobWorker>::ReleaseCallee(
363 printing::PrintJobWorker* obj) { 365 printing::PrintJobWorker* obj) {
364 DCHECK_EQ(owner_, obj->owner_); 366 DCHECK_EQ(owner_, obj->owner_);
365 owner_ = NULL; 367 owner_ = NULL;
366 } 368 }
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_job_manager.cc ('k') | chrome/browser/printing/print_preview_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698