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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.h

Issue 6334010: Print Preview: Store preview data in the print preview handler.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 16 matching lines...) Expand all
27 #include "webkit/glue/window_open_disposition.h" 27 #include "webkit/glue/window_open_disposition.h"
28 28
29 class ChildProcessSecurityPolicy; 29 class ChildProcessSecurityPolicy;
30 class FilePath; 30 class FilePath;
31 class GURL; 31 class GURL;
32 class ListValue; 32 class ListValue;
33 class RenderViewHostDelegate; 33 class RenderViewHostDelegate;
34 class SessionStorageNamespace; 34 class SessionStorageNamespace;
35 class SiteInstance; 35 class SiteInstance;
36 class SkBitmap; 36 class SkBitmap;
37 class TabContents;
38 class ViewMsg_Navigate; 37 class ViewMsg_Navigate;
39 struct ContentSettings; 38 struct ContentSettings;
40 struct ContextMenuParams; 39 struct ContextMenuParams;
41 struct MediaPlayerAction; 40 struct MediaPlayerAction;
42 struct ThumbnailScore; 41 struct ThumbnailScore;
43 struct ViewHostMsg_AccessibilityNotification_Params; 42 struct ViewHostMsg_AccessibilityNotification_Params;
44 struct ViewHostMsg_CreateWindow_Params; 43 struct ViewHostMsg_CreateWindow_Params;
45 struct ViewHostMsg_DidPreviewDocument_Params;
46 struct ViewHostMsg_DidPrintPage_Params;
47 struct ViewHostMsg_DomMessage_Params; 44 struct ViewHostMsg_DomMessage_Params;
48 struct ViewHostMsg_PageHasOSDD_Type; 45 struct ViewHostMsg_PageHasOSDD_Type;
49 struct ViewHostMsg_RunFileChooser_Params;
50 struct ViewHostMsg_ShowPopup_Params; 46 struct ViewHostMsg_ShowPopup_Params;
51 struct ViewMsg_Navigate_Params; 47 struct ViewMsg_Navigate_Params;
52 struct WebApplicationInfo; 48 struct WebApplicationInfo;
53 struct WebDropData; 49 struct WebDropData;
54 struct WebPreferences; 50 struct WebPreferences;
55 struct UserMetricsAction; 51 struct UserMetricsAction;
56 52
57 namespace gfx { 53 namespace gfx {
58 class Point; 54 class Point;
59 } // namespace gfx 55 } // namespace gfx
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 void OnWebDatabaseAccessed(const GURL& url, 628 void OnWebDatabaseAccessed(const GURL& url,
633 const string16& name, 629 const string16& name,
634 const string16& display_name, 630 const string16& display_name,
635 unsigned long estimated_size, 631 unsigned long estimated_size,
636 bool blocked_by_policy); 632 bool blocked_by_policy);
637 void OnUpdateZoomLimits(int minimum_percent, 633 void OnUpdateZoomLimits(int minimum_percent,
638 int maximum_percent, 634 int maximum_percent,
639 bool remember); 635 bool remember);
640 void OnDetectedPhishingSite(const GURL& phishing_url, double phishing_score); 636 void OnDetectedPhishingSite(const GURL& phishing_url, double phishing_score);
641 void OnScriptEvalResponse(int id, const ListValue& result); 637 void OnScriptEvalResponse(int id, const ListValue& result);
642 void OnPagesReadyForPreview(
643 const ViewHostMsg_DidPreviewDocument_Params& params);
644 638
645 #if defined(OS_MACOSX) 639 #if defined(OS_MACOSX)
646 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); 640 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params);
647 #endif 641 #endif
648 642
649 private: 643 private:
650 friend class TestRenderViewHost; 644 friend class TestRenderViewHost;
651 645
652 // Get/Create print preview tab.
653 TabContents* GetOrCreatePrintPreviewTab();
654
655 // The SiteInstance associated with this RenderViewHost. All pages drawn 646 // The SiteInstance associated with this RenderViewHost. All pages drawn
656 // in this RenderViewHost are part of this SiteInstance. Should not change 647 // in this RenderViewHost are part of this SiteInstance. Should not change
657 // over time. 648 // over time.
658 scoped_refptr<SiteInstance> instance_; 649 scoped_refptr<SiteInstance> instance_;
659 650
660 // Our delegate, which wants to know about changes in the RenderView. 651 // Our delegate, which wants to know about changes in the RenderView.
661 RenderViewHostDelegate* delegate_; 652 RenderViewHostDelegate* delegate_;
662 653
663 // true if we are currently waiting for a response for drag context 654 // true if we are currently waiting for a response for drag context
664 // information. 655 // information.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 // The most recently received accessibility tree - for unit testing only. 717 // The most recently received accessibility tree - for unit testing only.
727 webkit_glue::WebAccessibility accessibility_tree_; 718 webkit_glue::WebAccessibility accessibility_tree_;
728 719
729 // The termination status of the last render view that terminated. 720 // The termination status of the last render view that terminated.
730 base::TerminationStatus render_view_termination_status_; 721 base::TerminationStatus render_view_termination_status_;
731 722
732 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 723 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
733 }; 724 };
734 725
735 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 726 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/print_preview_message_handler.cc ('k') | chrome/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698