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

Side by Side Diff: content/public/browser/navigation_controller.h

Issue 2952483002: Revert of Always update the omnibox URL when cancelling via onbeforeunload (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « content/browser/web_contents/web_contents_impl_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 virtual int GetEntryCount() const = 0; 284 virtual int GetEntryCount() const = 0;
285 285
286 virtual NavigationEntry* GetEntryAtIndex(int index) const = 0; 286 virtual NavigationEntry* GetEntryAtIndex(int index) const = 0;
287 287
288 // Returns the entry at the specified offset from current. Returns nullptr 288 // Returns the entry at the specified offset from current. Returns nullptr
289 // if out of bounds. 289 // if out of bounds.
290 virtual NavigationEntry* GetEntryAtOffset(int offset) const = 0; 290 virtual NavigationEntry* GetEntryAtOffset(int offset) const = 0;
291 291
292 // Pending entry ------------------------------------------------------------- 292 // Pending entry -------------------------------------------------------------
293 293
294 // Discards the pending and transient entries if any, and send an appropriate 294 // Discards the pending and transient entries if any.
295 // notification (INVALIDATE_TYPE_URL or INVALIDATE_TYPE_ALL) if they were.
296 virtual void DiscardNonCommittedEntries() = 0; 295 virtual void DiscardNonCommittedEntries() = 0;
297 296
298 // Returns the pending entry corresponding to the navigation that is 297 // Returns the pending entry corresponding to the navigation that is
299 // currently in progress, or null if there is none. 298 // currently in progress, or null if there is none.
300 virtual NavigationEntry* GetPendingEntry() const = 0; 299 virtual NavigationEntry* GetPendingEntry() const = 0;
301 300
302 // Returns the index of the pending entry or -1 if the pending entry 301 // Returns the index of the pending entry or -1 if the pending entry
303 // corresponds to a new navigation (created via LoadURL). 302 // corresponds to a new navigation (created via LoadURL).
304 virtual int GetPendingEntryIndex() const = 0; 303 virtual int GetPendingEntryIndex() const = 0;
305 304
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 457
459 private: 458 private:
460 // This interface should only be implemented inside content. 459 // This interface should only be implemented inside content.
461 friend class NavigationControllerImpl; 460 friend class NavigationControllerImpl;
462 NavigationController() {} 461 NavigationController() {}
463 }; 462 };
464 463
465 } // namespace content 464 } // namespace content
466 465
467 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ 466 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698