| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Each NavigationController belongs to one WebContents; each WebContents has | 42 // Each NavigationController belongs to one WebContents; each WebContents has |
| 43 // exactly one NavigationController. | 43 // exactly one NavigationController. |
| 44 class NavigationController { | 44 class NavigationController { |
| 45 public: | 45 public: |
| 46 // Note: NO_RELOAD is used in general, but behaviors depend on context. | 46 // Note: NO_RELOAD is used in general, but behaviors depend on context. |
| 47 // If it is used for tab restore, or history navigation, it loads preferring | 47 // If it is used for tab restore, or history navigation, it loads preferring |
| 48 // cache (which may be stale). | 48 // cache (which may be stale). |
| 49 enum ReloadType { | 49 enum ReloadType { |
| 50 NO_RELOAD, // Normal load, restore, or history navigation. | 50 NO_RELOAD, // Normal load, restore, or history navigation. |
| 51 RELOAD, // Normal (cache-validating) reload. | 51 RELOAD, // Normal (cache-validating) reload. |
| 52 RELOAD_MAIN_RESOURCE, // Reload validating only the main resource. |
| 52 RELOAD_BYPASSING_CACHE, // Reload bypassing the cache (shift-reload). | 53 RELOAD_BYPASSING_CACHE, // Reload bypassing the cache (shift-reload). |
| 53 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL. | 54 RELOAD_ORIGINAL_REQUEST_URL, // Reload using the original request URL. |
| 54 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. | 55 RELOAD_DISABLE_LOFI_MODE // Reload with Lo-Fi mode disabled. |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 // Load type used in LoadURLParams. | 58 // Load type used in LoadURLParams. |
| 58 // | 59 // |
| 59 // A Java counterpart will be generated for this enum. | 60 // A Java counterpart will be generated for this enum. |
| 60 // GENERATED_JAVA_ENUM_PACKAGE: ( | 61 // GENERATED_JAVA_ENUM_PACKAGE: ( |
| 61 // org.chromium.content_public.browser.navigation_controller) | 62 // org.chromium.content_public.browser.navigation_controller) |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 | 496 |
| 496 private: | 497 private: |
| 497 // This interface should only be implemented inside content. | 498 // This interface should only be implemented inside content. |
| 498 friend class NavigationControllerImpl; | 499 friend class NavigationControllerImpl; |
| 499 NavigationController() {} | 500 NavigationController() {} |
| 500 }; | 501 }; |
| 501 | 502 |
| 502 } // namespace content | 503 } // namespace content |
| 503 | 504 |
| 504 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 505 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |