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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 8760024: Cross-process postMessage (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New patch, still not quite done Created 9 years 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 (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
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
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 content::Referrer& referrer, 517 const content::Referrer& 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 RequestTransferURL( 521 virtual void RequestTransferURL(
517 const GURL& url, 522 const GURL& url,
518 const content::Referrer& referrer, 523 const content::Referrer& referrer,
519 WindowOpenDisposition disposition, 524 WindowOpenDisposition disposition,
520 int64 source_frame_id, 525 int64 source_frame_id,
526 int64 opener_browsing_instance_frame_id,
521 const GlobalRequestID& transferred_global_request_id) OVERRIDE; 527 const GlobalRequestID& transferred_global_request_id) OVERRIDE;
522 virtual void RunJavaScriptMessage(const RenderViewHost* rvh, 528 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
523 const string16& message, 529 const string16& message,
524 const string16& default_prompt, 530 const string16& default_prompt,
525 const GURL& frame_url, 531 const GURL& frame_url,
526 ui::JavascriptMessageType type, 532 ui::JavascriptMessageType type,
527 IPC::Message* reply_msg, 533 IPC::Message* reply_msg,
528 bool* did_suppress_message) OVERRIDE; 534 bool* did_suppress_message) OVERRIDE;
529 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh, 535 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh,
530 const string16& message, 536 const string16& message,
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
878 // remember it. 884 // remember it.
879 bool temporary_zoom_settings_; 885 bool temporary_zoom_settings_;
880 886
881 // Content restrictions, used to disable print/copy etc based on content's 887 // Content restrictions, used to disable print/copy etc based on content's
882 // (full-page plugins for now only) permissions. 888 // (full-page plugins for now only) permissions.
883 int content_restrictions_; 889 int content_restrictions_;
884 890
885 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS. 891 // Our view type. Default is VIEW_TYPE_TAB_CONTENTS.
886 content::ViewType view_type_; 892 content::ViewType view_type_;
887 893
894 // The BrowsingInstanceFrameId for this tab
895 content::BrowsingInstanceFrame* browsing_instance_frame_;
896
888 DISALLOW_COPY_AND_ASSIGN(TabContents); 897 DISALLOW_COPY_AND_ASSIGN(TabContents);
889 }; 898 };
890 899
891 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 900 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698