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

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

Issue 21057: Remove black magic and >100 lines. Unhook a lot of dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/browser/printing/printed_document.cc ('k') | no next file » | 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) 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 #ifndef CHROME_BROWSER_PRINTING_PRINTED_PAGES_SOURCE_H__ 5 #ifndef CHROME_BROWSER_PRINTING_PRINTED_PAGES_SOURCE_H__
6 #define CHROME_BROWSER_PRINTING_PRINTED_PAGES_SOURCE_H__ 6 #define CHROME_BROWSER_PRINTING_PRINTED_PAGES_SOURCE_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 class GURL; 10 class GURL;
11 class MessageLoop; 11 class MessageLoop;
12 12
13 namespace printing { 13 namespace printing {
14 14
15 class PrintedDocument; 15 class PrintedDocument;
16 16
17 // Source of printed pages. 17 // Source of printed pages.
18 class PrintedPagesSource { 18 class PrintedPagesSource {
19 public: 19 public:
20 // Renders a printed page. It is not necessary to be synchronous. It must call
21 // document->SetPage() once the source is done rendering the requested page.
22 virtual void RenderOnePrintedPage(PrintedDocument* document,
23 int page_number) = 0;
24
25 // Returns the document title. 20 // Returns the document title.
26 virtual std::wstring RenderSourceName() = 0; 21 virtual std::wstring RenderSourceName() = 0;
27 22
28 // Returns the URL's source of the document if applicable. 23 // Returns the URL's source of the document if applicable.
29 virtual GURL RenderSourceUrl() = 0; 24 virtual GURL RenderSourceUrl() = 0;
30 }; 25 };
31 26
32 } // namespace printing 27 } // namespace printing
33 28
34 #endif // CHROME_BROWSER_PRINTING_PRINTED_PAGES_SOURCE_H__ 29 #endif // CHROME_BROWSER_PRINTING_PRINTED_PAGES_SOURCE_H__
35 30
OLDNEW
« no previous file with comments | « chrome/browser/printing/printed_document.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698