| OLD | NEW |
| 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 23 matching lines...) Expand all Loading... |
| 34 class SessionStorageNamespace; | 34 class SessionStorageNamespace; |
| 35 class SiteInstance; | 35 class SiteInstance; |
| 36 class SkBitmap; | 36 class SkBitmap; |
| 37 class ViewMsg_Navigate; | 37 class ViewMsg_Navigate; |
| 38 struct ContentSettings; | 38 struct ContentSettings; |
| 39 struct ContextMenuParams; | 39 struct ContextMenuParams; |
| 40 struct MediaPlayerAction; | 40 struct MediaPlayerAction; |
| 41 struct ThumbnailScore; | 41 struct ThumbnailScore; |
| 42 struct ViewHostMsg_AccessibilityNotification_Params; | 42 struct ViewHostMsg_AccessibilityNotification_Params; |
| 43 struct ViewHostMsg_CreateWindow_Params; | 43 struct ViewHostMsg_CreateWindow_Params; |
| 44 struct ViewHostMsg_DidPreviewDocument_Params; | |
| 45 struct ViewHostMsg_DidPrintPage_Params; | |
| 46 struct ViewHostMsg_DomMessage_Params; | 44 struct ViewHostMsg_DomMessage_Params; |
| 47 struct ViewHostMsg_PageHasOSDD_Type; | 45 struct ViewHostMsg_PageHasOSDD_Type; |
| 48 struct ViewHostMsg_RunFileChooser_Params; | |
| 49 struct ViewHostMsg_ShowNotification_Params; | 46 struct ViewHostMsg_ShowNotification_Params; |
| 50 struct ViewHostMsg_ShowPopup_Params; | 47 struct ViewHostMsg_ShowPopup_Params; |
| 51 struct ViewMsg_Navigate_Params; | 48 struct ViewMsg_Navigate_Params; |
| 52 struct WebApplicationInfo; | 49 struct WebApplicationInfo; |
| 53 struct WebDropData; | 50 struct WebDropData; |
| 54 struct WebPreferences; | 51 struct WebPreferences; |
| 55 struct UserMetricsAction; | 52 struct UserMetricsAction; |
| 56 | 53 |
| 57 namespace gfx { | 54 namespace gfx { |
| 58 class Point; | 55 class Point; |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 void OnWebDatabaseAccessed(const GURL& url, | 629 void OnWebDatabaseAccessed(const GURL& url, |
| 633 const string16& name, | 630 const string16& name, |
| 634 const string16& display_name, | 631 const string16& display_name, |
| 635 unsigned long estimated_size, | 632 unsigned long estimated_size, |
| 636 bool blocked_by_policy); | 633 bool blocked_by_policy); |
| 637 void OnUpdateZoomLimits(int minimum_percent, | 634 void OnUpdateZoomLimits(int minimum_percent, |
| 638 int maximum_percent, | 635 int maximum_percent, |
| 639 bool remember); | 636 bool remember); |
| 640 void OnDetectedPhishingSite(const GURL& phishing_url, double phishing_score); | 637 void OnDetectedPhishingSite(const GURL& phishing_url, double phishing_score); |
| 641 void OnScriptEvalResponse(int id, const ListValue& result); | 638 void OnScriptEvalResponse(int id, const ListValue& result); |
| 642 void OnPagesReadyForPreview( | |
| 643 const ViewHostMsg_DidPreviewDocument_Params& params); | |
| 644 | 639 |
| 645 #if defined(OS_MACOSX) | 640 #if defined(OS_MACOSX) |
| 646 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); | 641 void OnMsgShowPopup(const ViewHostMsg_ShowPopup_Params& params); |
| 647 #endif | 642 #endif |
| 648 | 643 |
| 649 private: | 644 private: |
| 650 friend class TestRenderViewHost; | 645 friend class TestRenderViewHost; |
| 651 | 646 |
| 652 // Get/Create print preview tab. | |
| 653 TabContents* GetOrCreatePrintPreviewTab(); | |
| 654 | |
| 655 // The SiteInstance associated with this RenderViewHost. All pages drawn | 647 // The SiteInstance associated with this RenderViewHost. All pages drawn |
| 656 // in this RenderViewHost are part of this SiteInstance. Should not change | 648 // in this RenderViewHost are part of this SiteInstance. Should not change |
| 657 // over time. | 649 // over time. |
| 658 scoped_refptr<SiteInstance> instance_; | 650 scoped_refptr<SiteInstance> instance_; |
| 659 | 651 |
| 660 // Our delegate, which wants to know about changes in the RenderView. | 652 // Our delegate, which wants to know about changes in the RenderView. |
| 661 RenderViewHostDelegate* delegate_; | 653 RenderViewHostDelegate* delegate_; |
| 662 | 654 |
| 663 // true if we are currently waiting for a response for drag context | 655 // true if we are currently waiting for a response for drag context |
| 664 // information. | 656 // information. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 // The most recently received accessibility tree - for unit testing only. | 718 // The most recently received accessibility tree - for unit testing only. |
| 727 webkit_glue::WebAccessibility accessibility_tree_; | 719 webkit_glue::WebAccessibility accessibility_tree_; |
| 728 | 720 |
| 729 // The termination status of the last render view that terminated. | 721 // The termination status of the last render view that terminated. |
| 730 base::TerminationStatus render_view_termination_status_; | 722 base::TerminationStatus render_view_termination_status_; |
| 731 | 723 |
| 732 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); | 724 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); |
| 733 }; | 725 }; |
| 734 | 726 |
| 735 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ | 727 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |