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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_distiller.h

Issue 1575473002: Improve syncing between dom distiller and the print preview request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Making the new operation (AddViewRequestDelegate) less intrusive on the DomDistillerService's inter… Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "components/dom_distiller/core/task_tracker.h"
14 #include "content/public/browser/web_contents_observer.h" 15 #include "content/public/browser/web_contents_observer.h"
15 16
16 namespace net { 17 namespace net {
17 class URLRequestContextGetter; 18 class URLRequestContextGetter;
18 } 19 }
19 20
20 // This class controls the rendering of the distilled contents 21 // This class controls the rendering of the distilled contents
21 // generated by a source web contents 22 // generated by a source web contents
22 class PrintPreviewDistiller { 23 class PrintPreviewDistiller {
23 public: 24 public:
(...skipping 20 matching lines...) Expand all
44 45
45 content::WebContents* CreateWebContents( 46 content::WebContents* CreateWebContents(
46 content::SessionStorageNamespace* session_storage_namespace, 47 content::SessionStorageNamespace* session_storage_namespace,
47 content::WebContents* source_web_contents); 48 content::WebContents* source_web_contents);
48 49
49 // The distilled rendered WebContents; may be null. 50 // The distilled rendered WebContents; may be null.
50 scoped_ptr<content::WebContents> web_contents_; 51 scoped_ptr<content::WebContents> web_contents_;
51 52
52 scoped_ptr<WebContentsDelegateImpl> web_contents_delegate_; 53 scoped_ptr<WebContentsDelegateImpl> web_contents_delegate_;
53 54
55 scoped_ptr<dom_distiller::ViewerHandle> viewer_handle_;
56
54 DISALLOW_COPY_AND_ASSIGN(PrintPreviewDistiller); 57 DISALLOW_COPY_AND_ASSIGN(PrintPreviewDistiller);
55 }; 58 };
56 59
57 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_ 60 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698