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_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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ClearExtraData(const std::string& key) override; | 143 void ClearExtraData(const std::string& key) override; |
144 void SetHttpStatusCode(int http_status_code) override; | 144 void SetHttpStatusCode(int http_status_code) override; |
145 int GetHttpStatusCode() const override; | 145 int GetHttpStatusCode() const override; |
146 void SetRedirectChain(const std::vector<GURL>& redirects) override; | 146 void SetRedirectChain(const std::vector<GURL>& redirects) override; |
147 const std::vector<GURL>& GetRedirectChain() const override; | 147 const std::vector<GURL>& GetRedirectChain() const override; |
148 bool IsRestored() const override; | 148 bool IsRestored() const override; |
| 149 std::string GetExtraHeaders() const override; |
| 150 void AddExtraHeaders(const std::string& extra_headers) override; |
149 | 151 |
150 // Creates a copy of this NavigationEntryImpl that can be modified | 152 // Creates a copy of this NavigationEntryImpl that can be modified |
151 // independently from the original. Does not copy any value that would be | 153 // independently from the original. Does not copy any value that would be |
152 // cleared in ResetForCommit. Unlike |CloneAndReplace|, this does not check | 154 // cleared in ResetForCommit. Unlike |CloneAndReplace|, this does not check |
153 // whether the subframe history items are for frames that are still in the | 155 // whether the subframe history items are for frames that are still in the |
154 // current page. | 156 // current page. |
155 std::unique_ptr<NavigationEntryImpl> Clone() const; | 157 std::unique_ptr<NavigationEntryImpl> Clone() const; |
156 | 158 |
157 // Like |Clone|, but replaces the FrameNavigationEntry corresponding to | 159 // Like |Clone|, but replaces the FrameNavigationEntry corresponding to |
158 // |target_frame_tree_node| with |frame_entry|, clearing all of its children | 160 // |target_frame_tree_node| with |frame_entry|, clearing all of its children |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
509 // persisted, unless specific data is taken out/put back in at save/restore | 511 // persisted, unless specific data is taken out/put back in at save/restore |
510 // time (see TabNavigation for an example of this). | 512 // time (see TabNavigation for an example of this). |
511 std::map<std::string, base::string16> extra_data_; | 513 std::map<std::string, base::string16> extra_data_; |
512 | 514 |
513 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 515 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
514 }; | 516 }; |
515 | 517 |
516 } // namespace content | 518 } // namespace content |
517 | 519 |
518 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 520 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |