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

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

Issue 2310363002: Persist offline page info in a navigation entry if needed (Closed)
Patch Set: Fix 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 void SetExtraData(const std::string& key, 138 void SetExtraData(const std::string& key,
139 const base::string16& data) override; 139 const base::string16& data) override;
140 bool GetExtraData(const std::string& key, 140 bool GetExtraData(const std::string& key,
141 base::string16* data) const override; 141 base::string16* data) const override;
142 void ClearExtraData(const std::string& key) override; 142 void ClearExtraData(const std::string& key) override;
143 void SetHttpStatusCode(int http_status_code) override; 143 void SetHttpStatusCode(int http_status_code) override;
144 int GetHttpStatusCode() const override; 144 int GetHttpStatusCode() const override;
145 void SetRedirectChain(const std::vector<GURL>& redirects) override; 145 void SetRedirectChain(const std::vector<GURL>& redirects) override;
146 const std::vector<GURL>& GetRedirectChain() const override; 146 const std::vector<GURL>& GetRedirectChain() const override;
147 bool IsRestored() const override; 147 bool IsRestored() const override;
148 std::string GetExtraHeaders() const override;
148 149
149 // Creates a copy of this NavigationEntryImpl that can be modified 150 // Creates a copy of this NavigationEntryImpl that can be modified
150 // independently from the original. Does not copy any value that would be 151 // independently from the original. Does not copy any value that would be
151 // cleared in ResetForCommit. Unlike |CloneAndReplace|, this does not check 152 // cleared in ResetForCommit. Unlike |CloneAndReplace|, this does not check
152 // whether the subframe history items are for frames that are still in the 153 // whether the subframe history items are for frames that are still in the
153 // current page. 154 // current page.
154 std::unique_ptr<NavigationEntryImpl> Clone() const; 155 std::unique_ptr<NavigationEntryImpl> Clone() const;
155 156
156 // Like |Clone|, but replaces the FrameNavigationEntry corresponding to 157 // Like |Clone|, but replaces the FrameNavigationEntry corresponding to
157 // |target_frame_tree_node| with |frame_entry|, clearing all of its children 158 // |target_frame_tree_node| with |frame_entry|, clearing all of its children
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 // persisted, unless specific data is taken out/put back in at save/restore 523 // persisted, unless specific data is taken out/put back in at save/restore
523 // time (see TabNavigation for an example of this). 524 // time (see TabNavigation for an example of this).
524 std::map<std::string, base::string16> extra_data_; 525 std::map<std::string, base::string16> extra_data_;
525 526
526 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); 527 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl);
527 }; 528 };
528 529
529 } // namespace content 530 } // namespace content
530 531
531 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ 532 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698