OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import "ios/web/web_state/ui/crw_wk_navigation_states.h" | 5 #import "ios/web/web_state/ui/crw_wk_navigation_states.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ios/web/web_state/navigation_context_impl.h" | 8 #import "ios/web/web_state/navigation_context_impl.h" |
9 | 9 |
10 #if !defined(__has_feature) || !__has_feature(objc_arc) | 10 #if !defined(__has_feature) || !__has_feature(objc_arc) |
11 #error "This file requires ARC support." | 11 #error "This file requires ARC support." |
12 #endif | 12 #endif |
13 | 13 |
14 // Holds a pair of state and creation order index. | 14 // Holds a pair of state and creation order index. |
15 @interface CRWWKNavigationsStateRecord : NSObject { | 15 @interface CRWWKNavigationsStateRecord : NSObject { |
16 // Backs up |context| property. | 16 // Backs up |context| property. |
17 std::unique_ptr<web::NavigationContextImpl> _context; | 17 std::unique_ptr<web::NavigationContextImpl> _context; |
18 } | 18 } |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
202 if (*outNavigation == _nullNavigation) { | 202 if (*outNavigation == _nullNavigation) { |
203 // |_nullNavigation| is a key for storing null navigations. | 203 // |_nullNavigation| is a key for storing null navigations. |
204 *outNavigation = nil; | 204 *outNavigation = nil; |
205 } | 205 } |
206 } | 206 } |
207 | 207 |
208 @end | 208 @end |
OLD | NEW |