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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview_data_source.h
===================================================================
--- chrome/browser/ui/webui/print_preview_data_source.h (revision 117298)
+++ chrome/browser/ui/webui/print_preview_data_source.h (working copy)
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_
-#define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_
-#pragma once
-
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
-#include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
-
-// PrintPreviewDataSource serves data for chrome://print requests.
-//
-// The format for requesting PDF data is as follows:
-// chrome://print/<PrintPreviewUIAddrStr>/<PageIndex>/print.pdf
-//
-// Parameters (< > required):
-// <PrintPreviewUIAddrStr> = Print preview UI identifier.
-// <PageIndex> = Page index is zero-based or
-// |printing::COMPLETE_PREVIEW_DOCUMENT_INDEX| to represent
-// a print ready PDF.
-//
-// Example:
-// chrome://print/0xab0123ef/10/print.pdf
-//
-// Requests to chrome://print with paths not ending in /print.pdf are used
-// to return the markup or other resources for the print preview page itself.
-class PrintPreviewDataSource : public ChromeWebUIDataSource {
- public:
- explicit PrintPreviewDataSource(bool is_dummy);
-
- // ChromeURLDataManager::DataSource implementation.
- virtual void StartDataRequest(const std::string& path,
- bool is_incognito,
- int request_id) OVERRIDE;
- private:
- virtual ~PrintPreviewDataSource();
- void Init(bool is_dummy);
-
- DISALLOW_COPY_AND_ASSIGN(PrintPreviewDataSource);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_DATA_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698