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

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

Issue 2327083002: Ntp: restore scroll position. (Closed)
Patch Set: Cleanups. Created 4 years, 3 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_ENTRY_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 void SetIsOverridingUserAgent(bool override) override; 133 void SetIsOverridingUserAgent(bool override) override;
134 bool GetIsOverridingUserAgent() const override; 134 bool GetIsOverridingUserAgent() const override;
135 void SetTimestamp(base::Time timestamp) override; 135 void SetTimestamp(base::Time timestamp) override;
136 base::Time GetTimestamp() const override; 136 base::Time GetTimestamp() const override;
137 void SetCanLoadLocalResources(bool allow) override; 137 void SetCanLoadLocalResources(bool allow) override;
138 bool GetCanLoadLocalResources() const override; 138 bool GetCanLoadLocalResources() const override;
139 void SetExtraData(const std::string& key, 139 void SetExtraData(const std::string& key,
140 const base::string16& data) override; 140 const base::string16& data) override;
141 bool GetExtraData(const std::string& key, 141 bool GetExtraData(const std::string& key,
142 base::string16* data) const override; 142 base::string16* data) const override;
143 void GetExtraData(std::map<std::string, base::string16>* data) override;
Bernhard Bauer 2016/09/16 15:02:50 You could just return a const ref to the map...
Michael van Ouwerkerk 2016/09/16 16:35:05 Done.
143 void ClearExtraData(const std::string& key) override; 144 void ClearExtraData(const std::string& key) override;
144 void SetHttpStatusCode(int http_status_code) override; 145 void SetHttpStatusCode(int http_status_code) override;
145 int GetHttpStatusCode() const override; 146 int GetHttpStatusCode() const override;
146 void SetRedirectChain(const std::vector<GURL>& redirects) override; 147 void SetRedirectChain(const std::vector<GURL>& redirects) override;
147 const std::vector<GURL>& GetRedirectChain() const override; 148 const std::vector<GURL>& GetRedirectChain() const override;
148 bool IsRestored() const override; 149 bool IsRestored() const override;
149 150
150 // Creates a copy of this NavigationEntryImpl that can be modified 151 // Creates a copy of this NavigationEntryImpl that can be modified
151 // independently from the original. Does not copy any value that would be 152 // independently from the original. Does not copy any value that would be
152 // cleared in ResetForCommit. Unlike |CloneAndReplace|, this does not check 153 // cleared in ResetForCommit. Unlike |CloneAndReplace|, this does not check
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 // persisted, unless specific data is taken out/put back in at save/restore 510 // persisted, unless specific data is taken out/put back in at save/restore
510 // time (see TabNavigation for an example of this). 511 // time (see TabNavigation for an example of this).
511 std::map<std::string, base::string16> extra_data_; 512 std::map<std::string, base::string16> extra_data_;
512 513
513 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 514 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
514 }; 515 };
515 516
516 } // namespace content 517 } // namespace content
517 518
518 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 519 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698