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

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: 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
17 using dom_distiller::ViewerHandle;
Bernhard Bauer 2016/01/19 17:21:02 Don't use `using` in headers – it imports this int
mvendramini_hp 2016/01/20 11:56:57 Done - you are right, this was an overlook, good c
18
16 namespace net { 19 namespace net {
17 class URLRequestContextGetter; 20 class URLRequestContextGetter;
18 } 21 }
19 22
20 // This class controls the rendering of the distilled contents 23 // This class controls the rendering of the distilled contents
21 // generated by a source web contents 24 // generated by a source web contents
22 class PrintPreviewDistiller { 25 class PrintPreviewDistiller {
23 public: 26 public:
24 static const base::Feature kFeature; 27 static const base::Feature kFeature;
25 28
(...skipping 18 matching lines...) Expand all
44 47
45 content::WebContents* CreateWebContents( 48 content::WebContents* CreateWebContents(
46 content::SessionStorageNamespace* session_storage_namespace, 49 content::SessionStorageNamespace* session_storage_namespace,
47 content::WebContents* source_web_contents); 50 content::WebContents* source_web_contents);
48 51
49 // The distilled rendered WebContents; may be null. 52 // The distilled rendered WebContents; may be null.
50 scoped_ptr<content::WebContents> web_contents_; 53 scoped_ptr<content::WebContents> web_contents_;
51 54
52 scoped_ptr<WebContentsDelegateImpl> web_contents_delegate_; 55 scoped_ptr<WebContentsDelegateImpl> web_contents_delegate_;
53 56
57 scoped_ptr<ViewerHandle> viewer_handle_;
58
54 DISALLOW_COPY_AND_ASSIGN(PrintPreviewDistiller); 59 DISALLOW_COPY_AND_ASSIGN(PrintPreviewDistiller);
55 }; 60 };
56 61
57 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_ 62 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_DISTILLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698