OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... | |
35 : public NON_EXPORTED_BASE(NavigationController) { | 35 : public NON_EXPORTED_BASE(NavigationController) { |
36 public: | 36 public: |
37 NavigationControllerImpl( | 37 NavigationControllerImpl( |
38 NavigationControllerDelegate* delegate, | 38 NavigationControllerDelegate* delegate, |
39 BrowserContext* browser_context); | 39 BrowserContext* browser_context); |
40 ~NavigationControllerImpl() override; | 40 ~NavigationControllerImpl() override; |
41 | 41 |
42 // NavigationController implementation: | 42 // NavigationController implementation: |
43 WebContents* GetWebContents() const override; | 43 WebContents* GetWebContents() const override; |
44 BrowserContext* GetBrowserContext() const override; | 44 BrowserContext* GetBrowserContext() const override; |
45 void SetBrowserContext(BrowserContext* browser_context) override; | |
46 void Restore(int selected_navigation, | 45 void Restore(int selected_navigation, |
47 RestoreType type, | 46 RestoreType type, |
48 std::vector<std::unique_ptr<NavigationEntry>>* entries) override; | 47 std::vector<std::unique_ptr<NavigationEntry>>* entries) override; |
49 NavigationEntryImpl* GetActiveEntry() const override; | 48 NavigationEntryImpl* GetActiveEntry() const override; |
50 NavigationEntryImpl* GetVisibleEntry() const override; | 49 NavigationEntryImpl* GetVisibleEntry() const override; |
51 int GetCurrentEntryIndex() const override; | 50 int GetCurrentEntryIndex() const override; |
52 NavigationEntryImpl* GetLastCommittedEntry() const override; | 51 NavigationEntryImpl* GetLastCommittedEntry() const override; |
53 int GetLastCommittedEntryIndex() const override; | 52 int GetLastCommittedEntryIndex() const override; |
54 bool CanViewSource() const override; | 53 bool CanViewSource() const override; |
55 int GetEntryCount() const override; | 54 int GetEntryCount() const override; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
355 // transient_entry_index_). | 354 // transient_entry_index_). |
356 void InsertEntriesFrom(const NavigationControllerImpl& source, int max_index); | 355 void InsertEntriesFrom(const NavigationControllerImpl& source, int max_index); |
357 | 356 |
358 // Returns the navigation index that differs from the current entry by the | 357 // Returns the navigation index that differs from the current entry by the |
359 // specified |offset|. The index returned is not guaranteed to be valid. | 358 // specified |offset|. The index returned is not guaranteed to be valid. |
360 int GetIndexForOffset(int offset) const; | 359 int GetIndexForOffset(int offset) const; |
361 | 360 |
362 // --------------------------------------------------------------------------- | 361 // --------------------------------------------------------------------------- |
363 | 362 |
364 // The user browser context associated with this controller. | 363 // The user browser context associated with this controller. |
365 BrowserContext* browser_context_; | 364 BrowserContext* const browser_context_; |
nasko
2016/06/06 21:46:52
Let's keep this CL to only removing the API. If yo
| |
366 | 365 |
367 // List of |NavigationEntry|s for this controller. | 366 // List of |NavigationEntry|s for this controller. |
368 std::vector<std::unique_ptr<NavigationEntryImpl>> entries_; | 367 std::vector<std::unique_ptr<NavigationEntryImpl>> entries_; |
369 | 368 |
370 // An entry we haven't gotten a response for yet. This will be discarded | 369 // An entry we haven't gotten a response for yet. This will be discarded |
371 // when we navigate again. It's used only so we know what the currently | 370 // when we navigate again. It's used only so we know what the currently |
372 // displayed tab is. | 371 // displayed tab is. |
373 // | 372 // |
374 // This may refer to an item in the entries_ list if the pending_entry_index_ | 373 // This may refer to an item in the entries_ list if the pending_entry_index_ |
375 // == -1, or it may be its own entry that should be deleted. Be careful with | 374 // == -1, or it may be its own entry that should be deleted. Be careful with |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
449 TimeSmoother time_smoother_; | 448 TimeSmoother time_smoother_; |
450 | 449 |
451 std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_; | 450 std::unique_ptr<NavigationEntryScreenshotManager> screenshot_manager_; |
452 | 451 |
453 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); | 452 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); |
454 }; | 453 }; |
455 | 454 |
456 } // namespace content | 455 } // namespace content |
457 | 456 |
458 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ | 457 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ |
OLD | NEW |