OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/navigation/crw_session_controller.h" | 5 #import "ios/web/navigation/crw_session_controller.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/format_macros.h" | 13 #include "base/format_macros.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #import "base/mac/foundation_util.h" | 15 #import "base/mac/foundation_util.h" |
16 #import "base/mac/scoped_nsobject.h" | 16 #import "base/mac/scoped_nsobject.h" |
17 #include "base/strings/sys_string_conversions.h" | 17 #include "base/strings/sys_string_conversions.h" |
18 #import "ios/web/history_state_util.h" | 18 #include "ios/web/history_state_util.h" |
19 #import "ios/web/navigation/crw_session_certificate_policy_manager.h" | 19 #import "ios/web/navigation/crw_session_certificate_policy_manager.h" |
20 #import "ios/web/navigation/crw_session_controller+private_constructors.h" | 20 #import "ios/web/navigation/crw_session_controller+private_constructors.h" |
21 #import "ios/web/navigation/crw_session_entry.h" | 21 #import "ios/web/navigation/crw_session_entry.h" |
22 #include "ios/web/navigation/navigation_item_impl.h" | 22 #import "ios/web/navigation/navigation_item_impl.h" |
23 #import "ios/web/navigation/navigation_manager_facade_delegate.h" | 23 #include "ios/web/navigation/navigation_manager_facade_delegate.h" |
24 #import "ios/web/navigation/navigation_manager_impl.h" | 24 #import "ios/web/navigation/navigation_manager_impl.h" |
25 #include "ios/web/navigation/time_smoother.h" | 25 #include "ios/web/navigation/time_smoother.h" |
26 #include "ios/web/public/browser_state.h" | 26 #include "ios/web/public/browser_state.h" |
27 #include "ios/web/public/browser_url_rewriter.h" | 27 #include "ios/web/public/browser_url_rewriter.h" |
28 #include "ios/web/public/referrer.h" | 28 #include "ios/web/public/referrer.h" |
29 #include "ios/web/public/ssl_status.h" | 29 #include "ios/web/public/ssl_status.h" |
30 | 30 |
31 #if !defined(__has_feature) || !__has_feature(objc_arc) | 31 #if !defined(__has_feature) || !__has_feature(objc_arc) |
32 #error "This file requires ARC support." | 32 #error "This file requires ARC support." |
33 #endif | 33 #endif |
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 return [[CRWSessionEntry alloc] initWithNavigationItem:std::move(item)]; | 773 return [[CRWSessionEntry alloc] initWithNavigationItem:std::move(item)]; |
774 } | 774 } |
775 | 775 |
776 - (BOOL)isRedirectTransitionForEntryAtIndex:(NSInteger)index { | 776 - (BOOL)isRedirectTransitionForEntryAtIndex:(NSInteger)index { |
777 ui::PageTransition transition = | 777 ui::PageTransition transition = |
778 [_entries[index] navigationItem]->GetTransitionType(); | 778 [_entries[index] navigationItem]->GetTransitionType(); |
779 return (transition & ui::PAGE_TRANSITION_IS_REDIRECT_MASK) ? YES : NO; | 779 return (transition & ui::PAGE_TRANSITION_IS_REDIRECT_MASK) ? YES : NO; |
780 } | 780 } |
781 | 781 |
782 @end | 782 @end |
OLD | NEW |