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

Side by Side Diff: content/browser/frame_host/navigation_controller_delegate.h

Issue 1268453003: Remove GetPendingSiteInstance from NavigationControllerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore pending_entry_index_ Created 5 years, 4 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
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include "content/public/browser/invalidate_type.h" 9 #include "content/public/browser/invalidate_type.h"
10 #include "content/public/browser/navigation_controller.h" 10 #include "content/public/browser/navigation_controller.h"
(...skipping 20 matching lines...) Expand all
31 class NavigationControllerDelegate { 31 class NavigationControllerDelegate {
32 public: 32 public:
33 virtual ~NavigationControllerDelegate() {} 33 virtual ~NavigationControllerDelegate() {}
34 34
35 // Duplicates of WebContents methods. 35 // Duplicates of WebContents methods.
36 virtual RenderViewHost* GetRenderViewHost() const = 0; 36 virtual RenderViewHost* GetRenderViewHost() const = 0;
37 virtual InterstitialPage* GetInterstitialPage() const = 0; 37 virtual InterstitialPage* GetInterstitialPage() const = 0;
38 virtual const std::string& GetContentsMimeType() const = 0; 38 virtual const std::string& GetContentsMimeType() const = 0;
39 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0; 39 virtual void NotifyNavigationStateChanged(InvalidateTypes changed_flags) = 0;
40 virtual void Stop() = 0; 40 virtual void Stop() = 0;
41 virtual SiteInstance* GetPendingSiteInstance() const = 0;
42 virtual int32 GetMaxPageID() = 0; 41 virtual int32 GetMaxPageID() = 0;
43 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0; 42 virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0;
44 virtual bool IsLoading() const = 0; 43 virtual bool IsLoading() const = 0;
45 virtual bool IsBeingDestroyed() const = 0; 44 virtual bool IsBeingDestroyed() const = 0;
46 virtual bool CanOverscrollContent() const = 0; 45 virtual bool CanOverscrollContent() const = 0;
47 46
48 // Methods from WebContentsImpl that NavigationControllerImpl needs to 47 // Methods from WebContentsImpl that NavigationControllerImpl needs to
49 // call. 48 // call.
50 virtual FrameTree* GetFrameTree() = 0; 49 virtual FrameTree* GetFrameTree() = 0;
51 virtual void NotifyBeforeFormRepostWarningShow() = 0; 50 virtual void NotifyBeforeFormRepostWarningShow() = 0;
(...skipping 20 matching lines...) Expand all
72 InterstitialPageImpl* interstitial_page) = 0; 71 InterstitialPageImpl* interstitial_page) = 0;
73 virtual void DetachInterstitialPage() = 0; 72 virtual void DetachInterstitialPage() = 0;
74 virtual void SetIsLoading(bool is_loading, 73 virtual void SetIsLoading(bool is_loading,
75 bool to_different_document, 74 bool to_different_document,
76 LoadNotificationDetails* details) = 0; 75 LoadNotificationDetails* details) = 0;
77 }; 76 };
78 77
79 } // namespace content 78 } // namespace content
80 79
81 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_ 80 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698