OLD | NEW |
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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // Returns true if a reload happens when activated (SetActive(true) is | 358 // Returns true if a reload happens when activated (SetActive(true) is |
359 // invoked). This is true for session/tab restore and cloned tabs. | 359 // invoked). This is true for session/tab restore and cloned tabs. |
360 virtual bool NeedsReload() const = 0; | 360 virtual bool NeedsReload() const = 0; |
361 | 361 |
362 // Cancels a repost that brought up a warning. | 362 // Cancels a repost that brought up a warning. |
363 virtual void CancelPendingReload() = 0; | 363 virtual void CancelPendingReload() = 0; |
364 // Continues a repost that brought up a warning. | 364 // Continues a repost that brought up a warning. |
365 virtual void ContinuePendingReload() = 0; | 365 virtual void ContinuePendingReload() = 0; |
366 | 366 |
367 // Returns true if we are navigating to the URL the tab is opened with. | 367 // Returns true if we are navigating to the URL the tab is opened with. |
368 // Returns false after initial navigation has loaded in frame. | 368 // Returns false after the initial navigation has committed. |
369 virtual bool IsInitialNavigation() = 0; | 369 virtual bool IsInitialNavigation() const = 0; |
370 | 370 |
371 // Broadcasts the NOTIFY_NAV_ENTRY_CHANGED notification for the given entry | 371 // Broadcasts the NOTIFY_NAV_ENTRY_CHANGED notification for the given entry |
372 // (which must be at the given index). This will keep things in sync like | 372 // (which must be at the given index). This will keep things in sync like |
373 // the saved session. | 373 // the saved session. |
374 virtual void NotifyEntryChanged(const NavigationEntry* entry, int index) = 0; | 374 virtual void NotifyEntryChanged(const NavigationEntry* entry, int index) = 0; |
375 | 375 |
376 // Copies the navigation state from the given controller to this one. This | 376 // Copies the navigation state from the given controller to this one. This |
377 // one should be empty (just created). | 377 // one should be empty (just created). |
378 virtual void CopyStateFrom(const NavigationController& source) = 0; | 378 virtual void CopyStateFrom(const NavigationController& source) = 0; |
379 | 379 |
(...skipping 12 matching lines...) Expand all Loading... |
392 virtual void PruneAllButActive() = 0; | 392 virtual void PruneAllButActive() = 0; |
393 | 393 |
394 // Clears all screenshots associated with navigation entries in this | 394 // Clears all screenshots associated with navigation entries in this |
395 // controller. Useful to reduce memory consumption in low-memory situations. | 395 // controller. Useful to reduce memory consumption in low-memory situations. |
396 virtual void ClearAllScreenshots() = 0; | 396 virtual void ClearAllScreenshots() = 0; |
397 }; | 397 }; |
398 | 398 |
399 } // namespace content | 399 } // namespace content |
400 | 400 |
401 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 401 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |