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

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

Issue 13243003: Move MessageLoop to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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) 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 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__
6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ 6 #define CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "printing/printing_context.h" 9 #include "printing/printing_context.h"
10 10
11 namespace base {
11 class MessageLoop; 12 class MessageLoop;
13 }
14
12 15
13 namespace printing { 16 namespace printing {
14 17
15 class PrintJobWorker; 18 class PrintJobWorker;
16 class PrintSettings; 19 class PrintSettings;
17 20
18 class PrintJobWorkerOwner 21 class PrintJobWorkerOwner
19 : public base::RefCountedThreadSafe<PrintJobWorkerOwner> { 22 : public base::RefCountedThreadSafe<PrintJobWorkerOwner> {
20 public: 23 public:
21 // Finishes the initialization began by PrintJobWorker::GetSettings(). 24 // Finishes the initialization began by PrintJobWorker::GetSettings().
22 // Creates a new PrintedDocument if necessary. Solely meant to be called by 25 // Creates a new PrintedDocument if necessary. Solely meant to be called by
23 // PrintJobWorker. 26 // PrintJobWorker.
24 virtual void GetSettingsDone(const PrintSettings& new_settings, 27 virtual void GetSettingsDone(const PrintSettings& new_settings,
25 PrintingContext::Result result) = 0; 28 PrintingContext::Result result) = 0;
26 29
27 // Detach the PrintJobWorker associated to this object. 30 // Detach the PrintJobWorker associated to this object.
28 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) = 0; 31 virtual PrintJobWorker* DetachWorker(PrintJobWorkerOwner* new_owner) = 0;
29 32
30 // Retrieves the message loop that is expected to process GetSettingsDone. 33 // Retrieves the message loop that is expected to process GetSettingsDone.
31 virtual MessageLoop* message_loop() = 0; 34 virtual base::MessageLoop* message_loop() = 0;
32 35
33 // Access the current settings. 36 // Access the current settings.
34 virtual const PrintSettings& settings() const = 0; 37 virtual const PrintSettings& settings() const = 0;
35 38
36 // Cookie uniquely identifying the PrintedDocument and/or loaded settings. 39 // Cookie uniquely identifying the PrintedDocument and/or loaded settings.
37 virtual int cookie() const = 0; 40 virtual int cookie() const = 0;
38 41
39 protected: 42 protected:
40 friend class base::RefCountedThreadSafe<PrintJobWorkerOwner>; 43 friend class base::RefCountedThreadSafe<PrintJobWorkerOwner>;
41 44
42 virtual ~PrintJobWorkerOwner() {} 45 virtual ~PrintJobWorkerOwner() {}
43 }; 46 };
44 47
45 } // namespace printing 48 } // namespace printing
46 49
47 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__ 50 #endif // CHROME_BROWSER_PRINTING_PRINT_JOB_WORKER_OWNER_H__
OLDNEW
« no previous file with comments | « chrome/browser/importer/firefox_importer_unittest_utils.h ('k') | chrome/browser/printing/printer_query.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698