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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // Removes all the entries except the last committed entry. If there is a new | 484 // Removes all the entries except the last committed entry. If there is a new |
485 // pending navigation it is preserved. Callers must ensure | 485 // pending navigation it is preserved. Callers must ensure |
486 // |CanPruneAllButLastCommitted| returns true before calling this, or it will | 486 // |CanPruneAllButLastCommitted| returns true before calling this, or it will |
487 // crash. | 487 // crash. |
488 virtual void PruneAllButLastCommitted() = 0; | 488 virtual void PruneAllButLastCommitted() = 0; |
489 | 489 |
490 // Clears all screenshots associated with navigation entries in this | 490 // Clears all screenshots associated with navigation entries in this |
491 // controller. Useful to reduce memory consumption in low-memory situations. | 491 // controller. Useful to reduce memory consumption in low-memory situations. |
492 virtual void ClearAllScreenshots() = 0; | 492 virtual void ClearAllScreenshots() = 0; |
493 | 493 |
| 494 virtual void UpdateOverridingUserAgent() = 0; |
| 495 |
494 private: | 496 private: |
495 // This interface should only be implemented inside content. | 497 // This interface should only be implemented inside content. |
496 friend class NavigationControllerImpl; | 498 friend class NavigationControllerImpl; |
497 NavigationController() {} | 499 NavigationController() {} |
498 }; | 500 }; |
499 | 501 |
500 } // namespace content | 502 } // namespace content |
501 | 503 |
502 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ | 504 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_CONTROLLER_H_ |
OLD | NEW |