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

Side by Side Diff: ios/web/public/navigation_manager.h

Issue 777183002: Upstream iOS web API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years 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 | « ios/public/provider/web/web_state_user_data.h ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
7
8 namespace web {
9
10 class BrowserState;
11 class NavigationItem;
12 class WebState;
13
14 // A NavigationManager maintains the back-forward list for a WebState and
15 // manages all navigation within that list.
16 //
17 // Each NavigationManager belongs to one WebState; each WebState has
18 // exactly one NavigationManager.
19 class NavigationManager {
20 public:
21 virtual ~NavigationManager() {}
22
23 // Gets the BrowserState associated with this NavigationManager. Can never
24 // return null.
25 virtual BrowserState* GetBrowserState() const = 0;
26
27 // Gets the WebState associated with this NavigationManager.
28 virtual WebState* GetWebState() const = 0;
29
30 // Returns the NavigationItem that should be used when displaying info about
31 // the current entry to the user. It ignores certain pending entries, to
32 // prevent spoofing attacks using slow-loading navigations.
33 virtual NavigationItem* GetVisibleItem() const = 0;
34 };
35
36 } // namespace web
37
38 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW
« no previous file with comments | « ios/public/provider/web/web_state_user_data.h ('k') | ios/web/public/web_state/web_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698