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

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

Issue 9969208: TabContents -> WebContentsImpl, part 20. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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) 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_VIEW_MANAGER_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "content/public/browser/notification_observer.h" 11 #include "content/public/browser/notification_observer.h"
12 #include "content/public/browser/notification_registrar.h" 12 #include "content/public/browser/notification_registrar.h"
13 #include "content/public/browser/web_contents_observer.h" 13 #include "content/public/browser/web_contents_observer.h"
14 #include "printing/printed_pages_source.h" 14 #include "printing/printed_pages_source.h"
15 15
16 class TabContentsWrapper; 16 class TabContentsWrapper;
17 struct PrintHostMsg_DidPrintPage_Params; 17 struct PrintHostMsg_DidPrintPage_Params;
18 18
19 namespace content { 19 namespace content {
20 class RenderProcessHost; 20 class RenderProcessHost;
21 } 21 }
22 22
23 namespace printing { 23 namespace printing {
24 24
25 class JobEventDetails; 25 class JobEventDetails;
26 class PrintJob; 26 class PrintJob;
27 class PrintJobWorkerOwner; 27 class PrintJobWorkerOwner;
28 class PrintViewManagerObserver; 28 class PrintViewManagerObserver;
29 29
30 // Manages the print commands in relation to a TabContents. TabContents 30 // Manages the print commands in relation to a TabContentsWrapper.
31 // delegates a few printing related commands to this instance. 31 // TabContentsWrapper delegates a few printing related commands to this
32 // instance.
32 class PrintViewManager : public content::NotificationObserver, 33 class PrintViewManager : public content::NotificationObserver,
33 public PrintedPagesSource, 34 public PrintedPagesSource,
34 public content::WebContentsObserver { 35 public content::WebContentsObserver {
35 public: 36 public:
36 explicit PrintViewManager(TabContentsWrapper* tab); 37 explicit PrintViewManager(TabContentsWrapper* tab);
37 virtual ~PrintViewManager(); 38 virtual ~PrintViewManager();
38 39
39 // Prints the current document immediately. Since the rendering is 40 // Prints the current document immediately. Since the rendering is
40 // asynchronous, the actual printing will not be completed on the return of 41 // asynchronous, the actual printing will not be completed on the return of
41 // this function. Returns false if printing is impossible at the moment. 42 // this function. Returns false if printing is impossible at the moment.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 201
201 // Keeps track of the pending callback during scripted print preview. 202 // Keeps track of the pending callback during scripted print preview.
202 content::RenderProcessHost* scripted_print_preview_rph_; 203 content::RenderProcessHost* scripted_print_preview_rph_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(PrintViewManager); 205 DISALLOW_COPY_AND_ASSIGN(PrintViewManager);
205 }; 206 };
206 207
207 } // namespace printing 208 } // namespace printing
208 209
209 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_ 210 #endif // CHROME_BROWSER_PRINTING_PRINT_VIEW_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_tab_controller.cc ('k') | chrome/browser/printing/print_view_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698