summaryrefslogtreecommitdiffstats
path: root/content/browser/tab_contents/page_navigator.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/tab_contents/page_navigator.h')
-rw-r--r--content/browser/tab_contents/page_navigator.h75
1 files changed, 0 insertions, 75 deletions
diff --git a/content/browser/tab_contents/page_navigator.h b/content/browser/tab_contents/page_navigator.h
deleted file mode 100644
index 4ec0a3b..0000000
--- a/content/browser/tab_contents/page_navigator.h
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2011 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.
-
-// PageNavigator defines an interface that can be used to express the user's
-// intention to navigate to a particular URL. The implementing class should
-// perform the navigation.
-
-#ifndef CONTENT_BROWSER_TAB_CONTENTS_PAGE_NAVIGATOR_H_
-#define CONTENT_BROWSER_TAB_CONTENTS_PAGE_NAVIGATOR_H_
-#pragma once
-
-#include <string>
-
-#include "content/browser/renderer_host/global_request_id.h"
-#include "content/common/content_export.h"
-#include "content/public/common/page_transition_types.h"
-#include "content/public/common/referrer.h"
-#include "googleurl/src/gurl.h"
-#include "webkit/glue/window_open_disposition.h"
-
-class TabContents;
-
-struct CONTENT_EXPORT OpenURLParams {
- OpenURLParams(const GURL& url,
- const content::Referrer& referrer,
- WindowOpenDisposition disposition,
- content::PageTransition transition,
- bool is_renderer_initiated);
- ~OpenURLParams();
-
- // The URL/referrer to be opened.
- GURL url;
- content::Referrer referrer;
-
- // The disposition requested by the navigation source.
- WindowOpenDisposition disposition;
-
- // The transition type of navigation.
- content::PageTransition transition;
-
- // Whether this navigation is initiated by the renderer process.
- bool is_renderer_initiated;
-
- // The override encoding of the URL contents to be opened.
- std::string override_encoding;
-
- // Reference to the old request id in case this is a navigation that is being
- // transferred to a new renderer.
- GlobalRequestID transferred_global_request_id;
-
- private:
- OpenURLParams();
-};
-
-class CONTENT_EXPORT PageNavigator {
- public:
- // Deprecated. Please use the one-argument variant instead.
- // TODO(adriansc): Remove this method when refactoring changed all call sites.
- virtual TabContents* OpenURL(const GURL& url,
- const GURL& referrer,
- WindowOpenDisposition disposition,
- content::PageTransition transition) = 0;
-
- // Opens a URL with the given disposition. The transition specifies how this
- // navigation should be recorded in the history system (for example, typed).
- // Returns the TabContents the URL is opened in, or NULL if the URL wasn't
- // opened immediately.
- virtual TabContents* OpenURL(const OpenURLParams& params) = 0;
-
- protected:
- virtual ~PageNavigator() {}
-};
-
-#endif // CONTENT_BROWSER_TAB_CONTENTS_PAGE_NAVIGATOR_H_