| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 return !virtual_url_.is_empty(); | 276 return !virtual_url_.is_empty(); |
| 275 } | 277 } |
| 276 | 278 |
| 277 bool update_virtual_url_with_url() const { | 279 bool update_virtual_url_with_url() const { |
| 278 return update_virtual_url_with_url_; | 280 return update_virtual_url_with_url_; |
| 279 } | 281 } |
| 280 void set_update_virtual_url_with_url(bool update) { | 282 void set_update_virtual_url_with_url(bool update) { |
| 281 update_virtual_url_with_url_ = update; | 283 update_virtual_url_with_url_ = update; |
| 282 } | 284 } |
| 283 | 285 |
| 284 // Extra headers (separated by \n) to send during the request. | 286 // Extra headers (separated by \r\n) to send during the request. |
| 285 void set_extra_headers(const std::string& extra_headers) { | 287 void set_extra_headers(const std::string& extra_headers) { |
| 286 extra_headers_ = extra_headers; | 288 extra_headers_ = extra_headers; |
| 287 } | 289 } |
| 288 const std::string& extra_headers() const { | 290 const std::string& extra_headers() const { |
| 289 return extra_headers_; | 291 return extra_headers_; |
| 290 } | 292 } |
| 291 | 293 |
| 292 // Whether this (pending) navigation is renderer-initiated. Resets to false | 294 // Whether this (pending) navigation is renderer-initiated. Resets to false |
| 293 // for all types of navigations after commit. | 295 // for all types of navigations after commit. |
| 294 void set_is_renderer_initiated(bool is_renderer_initiated) { | 296 void set_is_renderer_initiated(bool is_renderer_initiated) { |
| (...skipping 214 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 |