| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_FRAME_NAVIGATION_ENTRY_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_FRAME_NAVIGATION_ENTRY_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_NAVIGATION_ENTRY_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_FRAME_NAVIGATION_ENTRY_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // The actual URL loaded in the frame. This is in contrast to the virtual | 104 // The actual URL loaded in the frame. This is in contrast to the virtual |
| 105 // URL, which is shown to the user. | 105 // URL, which is shown to the user. |
| 106 void set_url(const GURL& url) { url_ = url; } | 106 void set_url(const GURL& url) { url_ = url; } |
| 107 const GURL& url() const { return url_; } | 107 const GURL& url() const { return url_; } |
| 108 | 108 |
| 109 // The referring URL. Can be empty. | 109 // The referring URL. Can be empty. |
| 110 void set_referrer(const Referrer& referrer) { referrer_ = referrer; } | 110 void set_referrer(const Referrer& referrer) { referrer_ = referrer; } |
| 111 const Referrer& referrer() const { return referrer_; } | 111 const Referrer& referrer() const { return referrer_; } |
| 112 | 112 |
| 113 void set_page_state(const PageState& page_state) { page_state_ = page_state; } | 113 void SetPageState(const PageState& page_state); |
| 114 const PageState& page_state() const { return page_state_; } | 114 const PageState& page_state() const { return page_state_; } |
| 115 | 115 |
| 116 // The HTTP method used to navigate. | 116 // The HTTP method used to navigate. |
| 117 const std::string& method() const { return method_; } | 117 const std::string& method() const { return method_; } |
| 118 void set_method(const std::string& method) { method_ = method; } | 118 void set_method(const std::string& method) { method_ = method; } |
| 119 | 119 |
| 120 // The id of the post corresponding to this navigation or -1 if the | 120 // The id of the post corresponding to this navigation or -1 if the |
| 121 // navigation was not a POST. | 121 // navigation was not a POST. |
| 122 int64_t post_id() const { return post_id_; } | 122 int64_t post_id() const { return post_id_; } |
| 123 void set_post_id(int64_t post_id) { post_id_ = post_id; } | 123 void set_post_id(int64_t post_id) { post_id_ = post_id; } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 149 PageState page_state_; | 149 PageState page_state_; |
| 150 std::string method_; | 150 std::string method_; |
| 151 int64_t post_id_; | 151 int64_t post_id_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(FrameNavigationEntry); | 153 DISALLOW_COPY_AND_ASSIGN(FrameNavigationEntry); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace content | 156 } // namespace content |
| 157 | 157 |
| 158 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_NAVIGATION_ENTRY_H_ | 158 #endif // CONTENT_BROWSER_FRAME_HOST_FRAME_NAVIGATION_ENTRY_H_ |
| OLD | NEW |