| 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class SiteInstance; | 43 class SiteInstance; |
| 44 class TabContentsDelegate; | 44 class TabContentsDelegate; |
| 45 class TabContentsObserver; | 45 class TabContentsObserver; |
| 46 class TabContentsView; | 46 class TabContentsView; |
| 47 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; | 47 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params; |
| 48 | 48 |
| 49 namespace webkit_glue { | 49 namespace webkit_glue { |
| 50 struct WebIntentData; | 50 struct WebIntentData; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace content { |
| 54 class BrowsingInstanceFrame; |
| 55 } |
| 56 |
| 53 // Describes what goes in the main content area of a tab. TabContents is | 57 // Describes what goes in the main content area of a tab. TabContents is |
| 54 // the only type of TabContents, and these should be merged together. | 58 // the only type of TabContents, and these should be merged together. |
| 55 class CONTENT_EXPORT TabContents : public PageNavigator, | 59 class CONTENT_EXPORT TabContents : public PageNavigator, |
| 56 public RenderViewHostDelegate, | 60 public RenderViewHostDelegate, |
| 57 public RenderViewHostManager::Delegate, | 61 public RenderViewHostManager::Delegate, |
| 58 public content::JavaScriptDialogDelegate { | 62 public content::JavaScriptDialogDelegate { |
| 59 public: | 63 public: |
| 60 // Flags passed to the TabContentsDelegate.NavigationStateChanged to tell it | 64 // Flags passed to the TabContentsDelegate.NavigationStateChanged to tell it |
| 61 // what has changed. Combine them to update more than one thing. | 65 // what has changed. Combine them to update more than one thing. |
| 62 enum InvalidateTypes { | 66 enum InvalidateTypes { |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 virtual void DidCancelLoading() OVERRIDE; | 509 virtual void DidCancelLoading() OVERRIDE; |
| 506 virtual void DidChangeLoadProgress(double progress) OVERRIDE; | 510 virtual void DidChangeLoadProgress(double progress) OVERRIDE; |
| 507 virtual void DocumentAvailableInMainFrame( | 511 virtual void DocumentAvailableInMainFrame( |
| 508 RenderViewHost* render_view_host) OVERRIDE; | 512 RenderViewHost* render_view_host) OVERRIDE; |
| 509 virtual void DocumentOnLoadCompletedInMainFrame( | 513 virtual void DocumentOnLoadCompletedInMainFrame( |
| 510 RenderViewHost* render_view_host, | 514 RenderViewHost* render_view_host, |
| 511 int32 page_id) OVERRIDE; | 515 int32 page_id) OVERRIDE; |
| 512 virtual void RequestOpenURL(const GURL& url, | 516 virtual void RequestOpenURL(const GURL& url, |
| 513 const GURL& referrer, | 517 const GURL& referrer, |
| 514 WindowOpenDisposition disposition, | 518 WindowOpenDisposition disposition, |
| 515 int64 source_frame_id) OVERRIDE; | 519 int64 source_frame_id, |
| 520 int64 opener_browsing_instance_frame_id) OVERRIDE; |
| 516 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, | 521 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, |
| 517 const string16& message, | 522 const string16& message, |
| 518 const string16& default_prompt, | 523 const string16& default_prompt, |
| 519 const GURL& frame_url, | 524 const GURL& frame_url, |
| 520 const int flags, | 525 const int flags, |
| 521 IPC::Message* reply_msg, | 526 IPC::Message* reply_msg, |
| 522 bool* did_suppress_message) OVERRIDE; | 527 bool* did_suppress_message) OVERRIDE; |
| 523 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, | 528 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, |
| 524 const string16& message, | 529 const string16& message, |
| 525 IPC::Message* reply_msg) OVERRIDE; | 530 IPC::Message* reply_msg) OVERRIDE; |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 // remember it. | 879 // remember it. |
| 875 bool temporary_zoom_settings_; | 880 bool temporary_zoom_settings_; |
| 876 | 881 |
| 877 // Content restrictions, used to disable print/copy etc based on content's | 882 // Content restrictions, used to disable print/copy etc based on content's |
| 878 // (full-page plugins for now only) permissions. | 883 // (full-page plugins for now only) permissions. |
| 879 int content_restrictions_; | 884 int content_restrictions_; |
| 880 | 885 |
| 881 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. | 886 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. |
| 882 content::ViewType view_type_; | 887 content::ViewType view_type_; |
| 883 | 888 |
| 889 // The BrowsingInstanceFrameId for this tab |
| 890 content::BrowsingInstanceFrame* browsing_instance_frame_; |
| 891 |
| 884 DISALLOW_COPY_AND_ASSIGN(TabContents); | 892 DISALLOW_COPY_AND_ASSIGN(TabContents); |
| 885 }; | 893 }; |
| 886 | 894 |
| 887 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ | 895 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ |
| OLD | NEW |