blob: 7d203e3771a8f6335404752098b0c967b6fa71e8 [file] [log] [blame]
[email protected]5a3b9142009-08-28 21:03:171// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
license.botbf09a502008-08-24 00:55:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
initial.commit09911bf2008-07-26 23:55:294
5// PageNavigator defines an interface that can be used to express the user's
6// intention to navigate to a particular URL. The implementing class should
7// perform the navigation.
8
[email protected]5632b202009-01-16 19:20:569#ifndef CHROME_BROWSER_TAB_CONTENTS_PAGE_NAVIGATOR_H_
10#define CHROME_BROWSER_TAB_CONTENTS_PAGE_NAVIGATOR_H_
initial.commit09911bf2008-07-26 23:55:2911
12#include "chrome/common/page_transition_types.h"
13#include "webkit/glue/window_open_disposition.h"
14
15class GURL;
16
17class PageNavigator {
18 public:
19 // Opens a URL with the given disposition. The transition specifies how this
20 // navigation should be recorded in the history system (for example, typed).
[email protected]c0588052008-10-27 23:01:5021 virtual void OpenURL(const GURL& url, const GURL& referrer,
initial.commit09911bf2008-07-26 23:55:2922 WindowOpenDisposition disposition,
23 PageTransition::Type transition) = 0;
24};
25
[email protected]5632b202009-01-16 19:20:5626#endif // CHROME_BROWSER_TAB_CONTENTS_PAGE_NAVIGATOR_H_