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

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

Issue 7063030: PrintPreview: Print Preview is not staying associated with initiator renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 years, 7 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
14 class Profile;
15
16 // PrintPreviewDataSource serves data for chrome://print requests.
17 //
18 // The format for requesting data is as follows:
19 // chrome://print/print.pdf/<PrintPreviewUIAddrStr>
20 //
21 // Parameters (< > required):
22 // <PrintPreviewUIAddrStr> = Print preview UI identifier.
23 //
24 // Example:
25 // chrome://print/print.pdf/ab0123ef
26
27 class PrintPreviewDataSource : public ChromeURLDataManager::DataSource {
28 public:
29 explicit PrintPreviewDataSource(Profile* profile);
30
31 // ChromeURLDataManager::DataSource implementation.
32 virtual void StartDataRequest(const std::string& path,
33 bool is_incognito,
34 int request_id) OVERRIDE;
35 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
36
37 private:
38 virtual ~PrintPreviewDataSource();
39
40 Profile* profile_;
41
42 DISALLOW_COPY_AND_ASSIGN(PrintPreviewDataSource);
43 };
44
45 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698