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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_distiller.h

Issue 2108833002: Remove Simplify Page option from Print Preview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mark histogram entries as unused Created 4 years, 6 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
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_distiller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_distiller.h
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_distiller.h b/chrome/browser/ui/webui/print_preview/print_preview_distiller.h
deleted file mode 100644
index 5e76849d8775f4d1c1cedacbbeb63d1b326d55ec..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/print_preview/print_preview_distiller.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2015 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_PRINT_PREVIEW_DISTILLER_H_
-#define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_
-
-#include <memory>
-
-#include "base/callback.h"
-#include "base/feature_list.h"
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "base/values.h"
-#include "content/public/browser/web_contents_observer.h"
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-// This class controls the rendering of the distilled contents
-// generated by a source web contents
-class PrintPreviewDistiller {
- public:
- static const base::Feature kFeature;
-
- static bool IsEnabled();
-
- PrintPreviewDistiller(content::WebContents* source_web_contents,
- base::Closure on_failed_callback,
- std::unique_ptr<base::DictionaryValue> settings);
- ~PrintPreviewDistiller();
-
- private:
- class WebContentsDelegateImpl;
-
- // Create the web contents with a default
- // size. |session_storage_namespace| indicates the namespace that
- // the distiller content renderer's page should be part of.
- void CreateDestinationWebContents(
- content::SessionStorageNamespace* session_storage_namespace,
- content::WebContents* source_web_contents,
- std::unique_ptr<base::DictionaryValue> settings,
- base::Closure on_failed_callback);
-
- content::WebContents* CreateWebContents(
- content::SessionStorageNamespace* session_storage_namespace,
- content::WebContents* source_web_contents);
-
- // The distilled rendered WebContents; may be null.
- std::unique_ptr<content::WebContents> web_contents_;
-
- std::unique_ptr<WebContentsDelegateImpl> web_contents_delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(PrintPreviewDistiller);
-};
-
-#endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/browser/ui/webui/print_preview/print_preview_distiller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698