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

Side by Side Diff: content/browser/web_contents/web_contents_impl.h

Issue 281653003: DRAFT CL: Add FrameNavigationEntry and track subframe session histories. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 5 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 SessionStorageNamespace* GetSessionStorageNamespace( 496 SessionStorageNamespace* GetSessionStorageNamespace(
497 SiteInstance* instance) override; 497 SiteInstance* instance) override;
498 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override; 498 SessionStorageNamespaceMap GetSessionStorageNamespaceMap() override;
499 FrameTree* GetFrameTree() override; 499 FrameTree* GetFrameTree() override;
500 void SetIsVirtualKeyboardRequested(bool requested) override; 500 void SetIsVirtualKeyboardRequested(bool requested) override;
501 bool IsVirtualKeyboardRequested() override; 501 bool IsVirtualKeyboardRequested() override;
502 502
503 503
504 // NavigatorDelegate --------------------------------------------------------- 504 // NavigatorDelegate ---------------------------------------------------------
505 505
506 FrameTreeNode* GetFrameTreeRoot() override;
506 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host, 507 void DidStartProvisionalLoad(RenderFrameHostImpl* render_frame_host,
507 const GURL& validated_url, 508 const GURL& validated_url,
508 bool is_error_page, 509 bool is_error_page,
509 bool is_iframe_srcdoc) override; 510 bool is_iframe_srcdoc) override;
510 void DidStartNavigationTransition( 511 void DidStartNavigationTransition(
511 RenderFrameHostImpl* render_frame_host) override; 512 RenderFrameHostImpl* render_frame_host) override;
512 void DidFailProvisionalLoadWithError( 513 void DidFailProvisionalLoadWithError(
513 RenderFrameHostImpl* render_frame_host, 514 RenderFrameHostImpl* render_frame_host,
514 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params) 515 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params)
515 override; 516 override;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 // Updates the max page ID for the given SiteInstance in this WebContentsImpl 622 // Updates the max page ID for the given SiteInstance in this WebContentsImpl
622 // to be at least |page_id|. 623 // to be at least |page_id|.
623 void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance, 624 void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance,
624 int32 page_id) override; 625 int32 page_id) override;
625 626
626 // Copy the current map of SiteInstance ID to max page ID from another tab. 627 // Copy the current map of SiteInstance ID to max page ID from another tab.
627 // This is necessary when this tab adopts the NavigationEntries from 628 // This is necessary when this tab adopts the NavigationEntries from
628 // |web_contents|. 629 // |web_contents|.
629 void CopyMaxPageIDsFrom(WebContents* web_contents) override; 630 void CopyMaxPageIDsFrom(WebContents* web_contents) override;
630 631
631 // Called by the NavigationController to cause the WebContentsImpl to navigate
632 // to the current pending entry. The NavigationController should be called
633 // back with RendererDidNavigate on success or DiscardPendingEntry on failure.
634 // The callbacks can be inside of this function, or at some future time.
635 //
636 // The entry has a PageID of -1 if newly created (corresponding to navigation
637 // to a new URL).
638 //
639 // If this method returns false, then the navigation is discarded (equivalent
640 // to calling DiscardPendingEntry on the NavigationController).
641 bool NavigateToPendingEntry(
642 NavigationController::ReloadType reload_type) override;
643
644 // Sets the history for this WebContentsImpl to |history_length| entries, with 632 // Sets the history for this WebContentsImpl to |history_length| entries, with
645 // an offset of |history_offset|. 633 // an offset of |history_offset|.
646 void SetHistoryOffsetAndLength(int history_offset, 634 void SetHistoryOffsetAndLength(int history_offset,
647 int history_length) override; 635 int history_length) override;
648 636
649 // Called by InterstitialPageImpl when it creates a RenderFrameHost. 637 // Called by InterstitialPageImpl when it creates a RenderFrameHost.
650 void RenderFrameForInterstitialPageCreated( 638 void RenderFrameForInterstitialPageCreated(
651 RenderFrameHost* render_frame_host) override; 639 RenderFrameHost* render_frame_host) override;
652 640
653 // Sets the passed interstitial as the currently showing interstitial. 641 // Sets the passed interstitial as the currently showing interstitial.
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 // Adds/removes a callback called on creation of each new WebContents. 1270 // Adds/removes a callback called on creation of each new WebContents.
1283 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); 1271 static void AddCreatedCallbackForTesting(const CreatedCallback& callback);
1284 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); 1272 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback);
1285 1273
1286 DISALLOW_COPY_AND_ASSIGN(FriendZone); 1274 DISALLOW_COPY_AND_ASSIGN(FriendZone);
1287 }; 1275 };
1288 1276
1289 } // namespace content 1277 } // namespace content
1290 1278
1291 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ 1279 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698