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

Unified Diff: content/browser/web_contents/navigation_controller_delegate.h

Issue 49823002: Move navigation and frame tree classes to a new frame_host/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing gyp and adding TODO. Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/navigation_controller_delegate.h
diff --git a/content/browser/web_contents/navigation_controller_delegate.h b/content/browser/web_contents/navigation_controller_delegate.h
deleted file mode 100644
index 4c22cb3f62f06097751e13b61834ec679a8dcb49..0000000000000000000000000000000000000000
--- a/content/browser/web_contents/navigation_controller_delegate.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_DELEGATE_H_
-#define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_DELEGATE_H_
-
-#include <string>
-#include "content/public/browser/navigation_controller.h"
-#include "content/public/browser/navigation_details.h"
-
-namespace content {
-
-struct LoadCommittedDetails;
-struct LoadNotificationDetails;
-struct NativeWebKeyboardEvent;
-class InterstitialPage;
-class InterstitialPageImpl;
-class RenderViewHost;
-class SiteInstance;
-class WebContents;
-class WebContentsDelegate;
-
-// Interface for objects embedding a NavigationController to provide the
-// functionality NavigationController needs.
-// TODO(nasko): This interface should exist for short amount of time, while
-// we transition navigation code from WebContents to Navigator.
-class NavigationControllerDelegate {
- public:
- virtual ~NavigationControllerDelegate() {}
-
- // Duplicates of WebContents methods.
- virtual RenderViewHost* GetRenderViewHost() const = 0;
- virtual InterstitialPage* GetInterstitialPage() const = 0;
- virtual const std::string& GetContentsMimeType() const = 0;
- virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0;
- virtual void Stop() = 0;
- virtual SiteInstance* GetSiteInstance() const = 0;
- virtual SiteInstance* GetPendingSiteInstance() const = 0;
- virtual int32 GetMaxPageID() = 0;
- virtual int32 GetMaxPageIDForSiteInstance(SiteInstance* site_instance) = 0;
- virtual bool IsLoading() const = 0;
-
- // Methods from WebContentsImpl that NavigationControllerImpl needs to
- // call.
- virtual void NotifyBeforeFormRepostWarningShow() = 0;
- virtual void NotifyNavigationEntryCommitted(
- const LoadCommittedDetails& load_details) = 0;
- virtual bool NavigateToPendingEntry(
- NavigationController::ReloadType reload_type) = 0;
- virtual void SetHistoryLengthAndPrune(
- const SiteInstance* site_instance,
- int merge_history_length,
- int32 minimum_page_id) = 0;
- virtual void CopyMaxPageIDsFrom(WebContents* web_contents) = 0;
- virtual void UpdateMaxPageID(int32 page_id) = 0;
- virtual void UpdateMaxPageIDForSiteInstance(SiteInstance* site_instance,
- int32 page_id) = 0;
- virtual void ActivateAndShowRepostFormWarningDialog() = 0;
-
- // This method is needed, since we are no longer guaranteed that the
- // embedder for NavigationController will be a WebContents object.
- virtual WebContents* GetWebContents() = 0;
-
- // Methods needed by InterstitialPageImpl.
- virtual bool IsHidden() = 0;
- virtual void RenderViewForInterstitialPageCreated(
- RenderViewHost* render_view_host) = 0;
- virtual void AttachInterstitialPage(
- InterstitialPageImpl* interstitial_page) = 0;
- virtual void DetachInterstitialPage() = 0;
- virtual void SetIsLoading(RenderViewHost* render_view_host,
- bool is_loading,
- LoadNotificationDetails* details) = 0;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_CONTROLLER_DELEGATE_H_
« no previous file with comments | « content/browser/web_contents/interstitial_page_impl.cc ('k') | content/browser/web_contents/navigation_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698