Chromium Code Reviews| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 283 | 283 |
| 284 // Adds an entry that is returned by GetActiveEntry(). The entry is | 284 // Adds an entry that is returned by GetActiveEntry(). The entry is |
| 285 // transient: any navigation causes it to be removed and discarded. The | 285 // transient: any navigation causes it to be removed and discarded. The |
| 286 // NavigationController becomes the owner of |entry| and deletes it when | 286 // NavigationController becomes the owner of |entry| and deletes it when |
| 287 // it discards it. This is useful with interstitial pages that need to be | 287 // it discards it. This is useful with interstitial pages that need to be |
| 288 // represented as an entry, but should go away when the user navigates away | 288 // represented as an entry, but should go away when the user navigates away |
| 289 // from them. | 289 // from them. |
| 290 // Note that adding a transient entry does not change the active contents. | 290 // Note that adding a transient entry does not change the active contents. |
| 291 virtual void SetTransientEntry(NavigationEntry* entry) = 0; | 291 virtual void SetTransientEntry(NavigationEntry* entry) = 0; |
| 292 | 292 |
| 293 // Keep a NavigationEntry apart from the regular history to be used to | |
| 294 // regenerate source after Blink blocks a page. | |
| 295 virtual NavigationEntry* GetBlockedPageEntry() const = 0; | |
| 296 virtual void SetBlockedPageEntry(NavigationEntry* entry) = 0; | |
|
nasko
2014/06/10 23:21:30
This is not called outside of content/, so it shou
| |
| 297 | |
| 293 // New navigations ----------------------------------------------------------- | 298 // New navigations ----------------------------------------------------------- |
| 294 | 299 |
| 295 // Loads the specified URL, specifying extra http headers to add to the | 300 // Loads the specified URL, specifying extra http headers to add to the |
| 296 // request. Extra headers are separated by \n. | 301 // request. Extra headers are separated by \n. |
| 297 virtual void LoadURL(const GURL& url, | 302 virtual void LoadURL(const GURL& url, |
| 298 const Referrer& referrer, | 303 const Referrer& referrer, |
| 299 PageTransition type, | 304 PageTransition type, |
| 300 const std::string& extra_headers) = 0; | 305 const std::string& extra_headers) = 0; |
| 301 | 306 |
| 302 // More general version of LoadURL. See comments in LoadURLParams for | 307 // More general version of LoadURL. See comments in LoadURLParams for |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 441 | 446 |
| 442 private: | 447 private: |
| 443 // This interface should only be implemented inside content. | 448 // This interface should only be implemented inside content. |
| 444 friend class NavigationControllerImpl; | 449 friend class NavigationControllerImpl; |
| 445 NavigationController() {} | 450 NavigationController() {} |
| 446 }; | 451 }; |
| 447 | 452 |
| 448 } // namespace content | 453 } // namespace content |
| 449 | 454 |
| 450 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 455 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
| OLD | NEW |