| 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 IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 5 #ifndef IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
| 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 6 #define IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // The transition type for the load. Defaults to PAGE_TRANSITION_LINK. | 41 // The transition type for the load. Defaults to PAGE_TRANSITION_LINK. |
| 42 ui::PageTransition transition_type; | 42 ui::PageTransition transition_type; |
| 43 | 43 |
| 44 // True for renderer-initiated navigations. This is | 44 // True for renderer-initiated navigations. This is |
| 45 // important for tracking whether to display pending URLs. | 45 // important for tracking whether to display pending URLs. |
| 46 bool is_renderer_initiated; | 46 bool is_renderer_initiated; |
| 47 | 47 |
| 48 // Any extra HTTP headers to add to the load. | 48 // Any extra HTTP headers to add to the load. |
| 49 base::scoped_nsobject<NSDictionary> extra_headers; | 49 base::scoped_nsobject<NSDictionary> extra_headers; |
| 50 | 50 |
| 51 base::scoped_nsobject<NSDictionary> extra_data; |
| 52 |
| 51 // Any post data to send with the load. When setting this, you should | 53 // Any post data to send with the load. When setting this, you should |
| 52 // generally set a Content-Type header as well. | 54 // generally set a Content-Type header as well. |
| 53 base::scoped_nsobject<NSData> post_data; | 55 base::scoped_nsobject<NSData> post_data; |
| 54 | 56 |
| 55 // Create a new WebLoadParams with the given URL and defaults for all other | 57 // Create a new WebLoadParams with the given URL and defaults for all other |
| 56 // parameters. | 58 // parameters. |
| 57 explicit WebLoadParams(const GURL& url); | 59 explicit WebLoadParams(const GURL& url); |
| 58 ~WebLoadParams(); | 60 ~WebLoadParams(); |
| 59 | 61 |
| 60 // Allow copying WebLoadParams. | 62 // Allow copying WebLoadParams. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // Reloads the current entry. If |check_for_repost| is true and the current | 144 // Reloads the current entry. If |check_for_repost| is true and the current |
| 143 // entry has POST data the user is prompted to see if they really want to | 145 // entry has POST data the user is prompted to see if they really want to |
| 144 // reload the page. In nearly all cases pass in true. If a transient entry | 146 // reload the page. In nearly all cases pass in true. If a transient entry |
| 145 // is showing, initiates a new navigation to its URL. | 147 // is showing, initiates a new navigation to its URL. |
| 146 virtual void Reload(bool check_for_repost) = 0; | 148 virtual void Reload(bool check_for_repost) = 0; |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace web | 151 } // namespace web |
| 150 | 152 |
| 151 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ | 153 #endif // IOS_WEB_PUBLIC_NAVIGATION_MANAGER_H_ |
| OLD | NEW |