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

Side by Side Diff: chrome/browser/ui/webui/print_preview_data_source.h

Issue 9114062: Move chrome/browser/ui/webui/print_preview* to chrome/browser/ui/webui/print_preview/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 11 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
13 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
14
15 // PrintPreviewDataSource serves data for chrome://print requests.
16 //
17 // The format for requesting PDF data is as follows:
18 // chrome://print/<PrintPreviewUIAddrStr>/<PageIndex>/print.pdf
19 //
20 // Parameters (< > required):
21 // <PrintPreviewUIAddrStr> = Print preview UI identifier.
22 // <PageIndex> = Page index is zero-based or
23 // |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to represent
24 // a print ready PDF.
25 //
26 // Example:
27 // chrome://print/0xab0123ef/10/print.pdf
28 //
29 // Requests to chrome://print with paths not ending in /print.pdf are used
30 // to return the markup or other resources for the print preview page itself.
31 class PrintPreviewDataSource : public ChromeWebUIDataSource {
32 public:
33 explicit PrintPreviewDataSource(bool is_dummy);
34
35 // ChromeURLDataManager::DataSource implementation.
36 virtual void StartDataRequest(const std::string& path,
37 bool is_incognito,
38 int request_id) OVERRIDE;
39 private:
40 virtual ~PrintPreviewDataSource();
41 void Init(bool is_dummy);
42
43 DISALLOW_COPY_AND_ASSIGN(PrintPreviewDataSource);
44 };
45
46 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698