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 #include "ios/web/navigation/navigation_item_impl.h" | 5 #include "ios/web/navigation/navigation_item_impl.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
9 #include "components/url_formatter/url_formatter.h" | 11 #include "components/url_formatter/url_formatter.h" |
10 #include "ui/base/page_transition_types.h" | 12 #include "ui/base/page_transition_types.h" |
11 #include "ui/gfx/text_elider.h" | 13 #include "ui/gfx/text_elider.h" |
12 | 14 |
13 namespace { | 15 namespace { |
14 | 16 |
15 // Returns a new unique ID for use in NavigationItem during construction. The | 17 // Returns a new unique ID for use in NavigationItem during construction. The |
16 // returned ID is guaranteed to be nonzero (which is the "no ID" indicator). | 18 // returned ID is guaranteed to be nonzero (which is the "no ID" indicator). |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 http_request_headers_.reset(); | 269 http_request_headers_.reset(); |
268 } | 270 } |
269 | 271 |
270 void NavigationItemImpl::ResetForCommit() { | 272 void NavigationItemImpl::ResetForCommit() { |
271 // Any state that only matters when a navigation item is pending should be | 273 // Any state that only matters when a navigation item is pending should be |
272 // cleared here. | 274 // cleared here. |
273 set_is_renderer_initiated(false); | 275 set_is_renderer_initiated(false); |
274 } | 276 } |
275 | 277 |
276 } // namespace web | 278 } // namespace web |
OLD | NEW |