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

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

Issue 1361173005: Created SerializedUserDataManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serialized_navigation_manager
Patch Set: Created 5 years, 3 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
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 IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
7 7
8 #include "base/supports_user_data.h"
8 #include "ios/web/public/browser_url_rewriter.h" 9 #include "ios/web/public/browser_url_rewriter.h"
9 10
10 namespace web { 11 namespace web {
11 12
12 class BrowserState; 13 class BrowserState;
13 class NavigationItem; 14 class NavigationItem;
14 class WebState; 15 class WebState;
15 16
16 // A NavigationManager maintains the back-forward list for a WebState and 17 // A NavigationManager maintains the back-forward list for a WebState and
17 // manages all navigation within that list. 18 // manages all navigation within that list.
18 // 19 //
19 // Each NavigationManager belongs to one WebState; each WebState has 20 // Each NavigationManager belongs to one WebState; each WebState has
20 // exactly one NavigationManager. 21 // exactly one NavigationManager.
21 class NavigationManager { 22 class NavigationManager : public base::SupportsUserData {
Eugene But (OOO till 7-30) 2015/09/24 17:05:07 Is there any specific reason why NavigationManager
kkhorimoto 2015/09/24 21:24:29 I initially did this because of the style guide's
22 public: 23 public:
23 virtual ~NavigationManager() {} 24 ~NavigationManager() override {}
24 25
25 // Gets the BrowserState associated with this NavigationManager. Can never 26 // Gets the BrowserState associated with this NavigationManager. Can never
26 // return null. 27 // return null.
27 virtual BrowserState* GetBrowserState() const = 0; 28 virtual BrowserState* GetBrowserState() const = 0;
28 29
29 // Gets the WebState associated with this NavigationManager. 30 // Gets the WebState associated with this NavigationManager.
30 virtual WebState* GetWebState() const = 0; 31 virtual WebState* GetWebState() const = 0;
31 32
32 // Returns the NavigationItem that should be used when displaying info about 33 // Returns the NavigationItem that should be used when displaying info about
33 // the current entry to the user. It ignores certain pending entries, to 34 // the current entry to the user. It ignores certain pending entries, to
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual int GetCurrentEntryIndex() const = 0; 71 virtual int GetCurrentEntryIndex() const = 0;
71 72
72 // Returns the index of the pending item or -1 if the pending item 73 // Returns the index of the pending item or -1 if the pending item
73 // corresponds to a new navigation. 74 // corresponds to a new navigation.
74 virtual int GetPendingItemIndex() const = 0; 75 virtual int GetPendingItemIndex() const = 0;
75 }; 76 };
76 77
77 } // namespace web 78 } // namespace web
78 79
79 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ 80 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698