| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ | 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ |
| 6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ | 6 #define IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // |true| if this item is the result of a POST request with data. | 111 // |true| if this item is the result of a POST request with data. |
| 112 virtual bool HasPostData() const = 0; | 112 virtual bool HasPostData() const = 0; |
| 113 | 113 |
| 114 // Returns the item's current http request headers. | 114 // Returns the item's current http request headers. |
| 115 virtual NSDictionary* GetHttpRequestHeaders() const = 0; | 115 virtual NSDictionary* GetHttpRequestHeaders() const = 0; |
| 116 | 116 |
| 117 // Adds headers from |additional_headers| to the item's http request headers. | 117 // Adds headers from |additional_headers| to the item's http request headers. |
| 118 // Existing headers with the same key will be overridden. | 118 // Existing headers with the same key will be overridden. |
| 119 virtual void AddHttpRequestHeaders(NSDictionary* additional_headers) = 0; | 119 virtual void AddHttpRequestHeaders(NSDictionary* additional_headers) = 0; |
| 120 |
| 121 virtual NSDictionary* GetExtraData() const = 0; |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace web | 124 } // namespace web |
| 123 | 125 |
| 124 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ | 126 #endif // IOS_WEB_PUBLIC_NAVIGATION_ITEM_H_ |
| OLD | NEW |