Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: content/browser/frame_host/navigation_controller_impl.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
9 #include <stdint.h>
10
8 #include <vector> 11 #include <vector>
9 12
10 #include "base/callback.h" 13 #include "base/callback.h"
11 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
12 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/macros.h"
13 #include "base/time/time.h" 17 #include "base/time/time.h"
14 #include "build/build_config.h" 18 #include "build/build_config.h"
15 #include "content/browser/frame_host/navigation_controller_delegate.h" 19 #include "content/browser/frame_host/navigation_controller_delegate.h"
16 #include "content/browser/frame_host/navigation_entry_impl.h" 20 #include "content/browser/frame_host/navigation_entry_impl.h"
17 #include "content/browser/ssl/ssl_manager.h" 21 #include "content/browser/ssl/ssl_manager.h"
18 #include "content/public/browser/navigation_controller.h" 22 #include "content/public/browser/navigation_controller.h"
19 #include "content/public/browser/navigation_type.h" 23 #include "content/public/browser/navigation_type.h"
20 24
21 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 25 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
22 26
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 bool CanGoForward() const override; 70 bool CanGoForward() const override;
67 bool CanGoToOffset(int offset) const override; 71 bool CanGoToOffset(int offset) const override;
68 void GoBack() override; 72 void GoBack() override;
69 void GoForward() override; 73 void GoForward() override;
70 void GoToIndex(int index) override; 74 void GoToIndex(int index) override;
71 void GoToOffset(int offset) override; 75 void GoToOffset(int offset) override;
72 bool RemoveEntryAtIndex(int index) override; 76 bool RemoveEntryAtIndex(int index) override;
73 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap() 77 const SessionStorageNamespaceMap& GetSessionStorageNamespaceMap()
74 const override; 78 const override;
75 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override; 79 SessionStorageNamespace* GetDefaultSessionStorageNamespace() override;
76 void SetMaxRestoredPageID(int32 max_id) override; 80 void SetMaxRestoredPageID(int32_t max_id) override;
77 int32 GetMaxRestoredPageID() const override; 81 int32_t GetMaxRestoredPageID() const override;
78 bool NeedsReload() const override; 82 bool NeedsReload() const override;
79 void SetNeedsReload() override; 83 void SetNeedsReload() override;
80 void CancelPendingReload() override; 84 void CancelPendingReload() override;
81 void ContinuePendingReload() override; 85 void ContinuePendingReload() override;
82 bool IsInitialNavigation() const override; 86 bool IsInitialNavigation() const override;
83 bool IsInitialBlankNavigation() const override; 87 bool IsInitialBlankNavigation() const override;
84 void Reload(bool check_for_repost) override; 88 void Reload(bool check_for_repost) override;
85 void ReloadToRefreshContent(bool check_for_repost) override; 89 void ReloadToRefreshContent(bool check_for_repost) override;
86 void ReloadIgnoringCache(bool check_for_repost) override; 90 void ReloadIgnoringCache(bool check_for_repost) override;
87 void ReloadOriginalRequestURL(bool check_for_repost) override; 91 void ReloadOriginalRequestURL(bool check_for_repost) override;
(...skipping 14 matching lines...) Expand all
102 // |instance| should use. 106 // |instance| should use.
103 SessionStorageNamespace* GetSessionStorageNamespace( 107 SessionStorageNamespace* GetSessionStorageNamespace(
104 SiteInstance* instance); 108 SiteInstance* instance);
105 109
106 // Returns the index of the specified entry, or -1 if entry is not contained 110 // Returns the index of the specified entry, or -1 if entry is not contained
107 // in this NavigationController. 111 // in this NavigationController.
108 int GetIndexOfEntry(const NavigationEntryImpl* entry) const; 112 int GetIndexOfEntry(const NavigationEntryImpl* entry) const;
109 113
110 // Return the index of the entry with the corresponding instance and page_id, 114 // Return the index of the entry with the corresponding instance and page_id,
111 // or -1 if not found. 115 // or -1 if not found.
112 int GetEntryIndexWithPageID(SiteInstance* instance, 116 int GetEntryIndexWithPageID(SiteInstance* instance, int32_t page_id) const;
113 int32 page_id) const;
114 117
115 // Return the index of the entry with the given unique id, or -1 if not found. 118 // Return the index of the entry with the given unique id, or -1 if not found.
116 int GetEntryIndexWithUniqueID(int nav_entry_id) const; 119 int GetEntryIndexWithUniqueID(int nav_entry_id) const;
117 120
118 // Return the entry with the corresponding instance and page_id, or null if 121 // Return the entry with the corresponding instance and page_id, or null if
119 // not found. 122 // not found.
120 NavigationEntryImpl* GetEntryWithPageID( 123 NavigationEntryImpl* GetEntryWithPageID(SiteInstance* instance,
121 SiteInstance* instance, 124 int32_t page_id) const;
122 int32 page_id) const;
123 125
124 // Return the entry with the given unique id, or null if not found. 126 // Return the entry with the given unique id, or null if not found.
125 NavigationEntryImpl* GetEntryWithUniqueID(int nav_entry_id) const; 127 NavigationEntryImpl* GetEntryWithUniqueID(int nav_entry_id) const;
126 128
127 NavigationControllerDelegate* delegate() const { 129 NavigationControllerDelegate* delegate() const {
128 return delegate_; 130 return delegate_;
129 } 131 }
130 132
131 // For use by WebContentsImpl ------------------------------------------------ 133 // For use by WebContentsImpl ------------------------------------------------
132 134
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 // after the transient entry will become invalid if you navigate forward. 394 // after the transient entry will become invalid if you navigate forward.
393 int transient_entry_index_; 395 int transient_entry_index_;
394 396
395 // The delegate associated with the controller. Possibly NULL during 397 // The delegate associated with the controller. Possibly NULL during
396 // setup. 398 // setup.
397 NavigationControllerDelegate* delegate_; 399 NavigationControllerDelegate* delegate_;
398 400
399 // The max restored page ID in this controller, if it was restored. We must 401 // The max restored page ID in this controller, if it was restored. We must
400 // store this so that WebContentsImpl can tell any renderer in charge of one 402 // store this so that WebContentsImpl can tell any renderer in charge of one
401 // of the restored entries to update its max page ID. 403 // of the restored entries to update its max page ID.
402 int32 max_restored_page_id_; 404 int32_t max_restored_page_id_;
403 405
404 // Manages the SSL security UI. 406 // Manages the SSL security UI.
405 SSLManager ssl_manager_; 407 SSLManager ssl_manager_;
406 408
407 // Whether we need to be reloaded when made active. 409 // Whether we need to be reloaded when made active.
408 bool needs_reload_; 410 bool needs_reload_;
409 411
410 // Whether this is the initial navigation. 412 // Whether this is the initial navigation.
411 // Becomes false when initial navigation commits. 413 // Becomes false when initial navigation commits.
412 bool is_initial_navigation_; 414 bool is_initial_navigation_;
(...skipping 28 matching lines...) Expand all
441 TimeSmoother time_smoother_; 443 TimeSmoother time_smoother_;
442 444
443 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_; 445 scoped_ptr<NavigationEntryScreenshotManager> screenshot_manager_;
444 446
445 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl); 447 DISALLOW_COPY_AND_ASSIGN(NavigationControllerImpl);
446 }; 448 };
447 449
448 } // namespace content 450 } // namespace content
449 451
450 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_ 452 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_controller_delegate.h ('k') | content/browser/frame_host/navigation_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698