| 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 25 matching lines...) Expand all Loading... |
| 36 // manages all navigation within that list. | 36 // manages all navigation within that list. |
| 37 // | 37 // |
| 38 // Each NavigationController belongs to one WebContents; each WebContents has | 38 // Each NavigationController belongs to one WebContents; each WebContents has |
| 39 // exactly one NavigationController. | 39 // exactly one NavigationController. |
| 40 class NavigationController { | 40 class NavigationController { |
| 41 public: | 41 public: |
| 42 enum ReloadType { | 42 enum ReloadType { |
| 43 NO_RELOAD, // Normal load. | 43 NO_RELOAD, // Normal load. |
| 44 RELOAD, // Normal (cache-validating) reload. | 44 RELOAD, // Normal (cache-validating) reload. |
| 45 RELOAD_IGNORING_CACHE, // Reload bypassing the cache (shift-reload). | 45 RELOAD_IGNORING_CACHE, // Reload bypassing the cache (shift-reload). |
| 46 RELOAD_ORIGINAL_REQUEST_URL // Reload using the original request URL. | 46 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL. |
| 47 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 // Load type used in LoadURLParams. | 50 // Load type used in LoadURLParams. |
| 50 // | 51 // |
| 51 // A Java counterpart will be generated for this enum. | 52 // A Java counterpart will be generated for this enum. |
| 52 // GENERATED_JAVA_ENUM_PACKAGE: ( | 53 // GENERATED_JAVA_ENUM_PACKAGE: ( |
| 53 // org.chromium.content_public.browser.navigation_controller) | 54 // org.chromium.content_public.browser.navigation_controller) |
| 54 // GENERATED_JAVA_PREFIX_TO_STRIP: LOAD_TYPE_ | 55 // GENERATED_JAVA_PREFIX_TO_STRIP: LOAD_TYPE_ |
| 55 enum LoadURLType { | 56 enum LoadURLType { |
| 56 // For loads that do not fall into any types below. | 57 // For loads that do not fall into any types below. |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 virtual void Reload(bool check_for_repost) = 0; | 359 virtual void Reload(bool check_for_repost) = 0; |
| 359 | 360 |
| 360 // Like Reload(), but don't use caches (aka "shift-reload"). | 361 // Like Reload(), but don't use caches (aka "shift-reload"). |
| 361 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; | 362 virtual void ReloadIgnoringCache(bool check_for_repost) = 0; |
| 362 | 363 |
| 363 // Reloads the current entry using the original URL used to create it. This | 364 // Reloads the current entry using the original URL used to create it. This |
| 364 // is used for cases where the user wants to refresh a page using a different | 365 // is used for cases where the user wants to refresh a page using a different |
| 365 // user agent after following a redirect. | 366 // user agent after following a redirect. |
| 366 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; | 367 virtual void ReloadOriginalRequestURL(bool check_for_repost) = 0; |
| 367 | 368 |
| 369 // Like Reload(), but disables Lo-Fi. |
| 370 virtual void ReloadDisableLoFi(bool check_for_repost) = 0; |
| 371 |
| 368 // Removing of entries ------------------------------------------------------- | 372 // Removing of entries ------------------------------------------------------- |
| 369 | 373 |
| 370 // Removes the entry at the specified |index|. If the index is the last | 374 // Removes the entry at the specified |index|. If the index is the last |
| 371 // committed index or the pending entry, this does nothing and returns false. | 375 // committed index or the pending entry, this does nothing and returns false. |
| 372 // Otherwise this call discards any transient or pending entries. | 376 // Otherwise this call discards any transient or pending entries. |
| 373 virtual bool RemoveEntryAtIndex(int index) = 0; | 377 virtual bool RemoveEntryAtIndex(int index) = 0; |
| 374 | 378 |
| 375 // Random -------------------------------------------------------------------- | 379 // Random -------------------------------------------------------------------- |
| 376 | 380 |
| 377 // Session storage depends on dom_storage that depends on blink::WebString, | 381 // Session storage depends on dom_storage that depends on blink::WebString, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 467 | 471 |
| 468 private: | 472 private: |
| 469 // This interface should only be implemented inside content. | 473 // This interface should only be implemented inside content. |
| 470 friend class NavigationControllerImpl; | 474 friend class NavigationControllerImpl; |
| 471 NavigationController() {} | 475 NavigationController() {} |
| 472 }; | 476 }; |
| 473 | 477 |
| 474 } // namespace content | 478 } // namespace content |
| 475 | 479 |
| 476 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 480 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |