| 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/chrome/browser/tabs/tab.h" | 5 #import "ios/chrome/browser/tabs/tab.h" |
| 6 | 6 |
| 7 #import <CoreLocation/CoreLocation.h> | 7 #import <CoreLocation/CoreLocation.h> |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1755 [autoReloadBridge_ loadFinishedForURL:lastCommittedURL wasPost:wasPost]; | 1755 [autoReloadBridge_ loadFinishedForURL:lastCommittedURL wasPost:wasPost]; |
| 1756 else | 1756 else |
| 1757 [autoReloadBridge_ loadFailedForURL:lastCommittedURL wasPost:wasPost]; | 1757 [autoReloadBridge_ loadFailedForURL:lastCommittedURL wasPost:wasPost]; |
| 1758 [webControllerSnapshotHelper_ setSnapshotCoalescingEnabled:YES]; | 1758 [webControllerSnapshotHelper_ setSnapshotCoalescingEnabled:YES]; |
| 1759 if (!loadSuccess) { | 1759 if (!loadSuccess) { |
| 1760 [fullScreenController_ disableFullScreen]; | 1760 [fullScreenController_ disableFullScreen]; |
| 1761 } | 1761 } |
| 1762 [self recordInterfaceOrientation]; | 1762 [self recordInterfaceOrientation]; |
| 1763 navigation_metrics::OriginsSeenService* originsSeenService = | 1763 navigation_metrics::OriginsSeenService* originsSeenService = |
| 1764 IOSChromeOriginsSeenServiceFactory::GetForBrowserState(self.browserState); | 1764 IOSChromeOriginsSeenServiceFactory::GetForBrowserState(self.browserState); |
| 1765 bool alreadySeen = | 1765 bool alreadySeen = originsSeenService->Insert(url::Origin(lastCommittedURL)); |
| 1766 originsSeenService->Insert(url::Origin::Origin(lastCommittedURL)); | |
| 1767 navigation_metrics::RecordMainFrameNavigation( | 1766 navigation_metrics::RecordMainFrameNavigation( |
| 1768 lastCommittedURL, true, self.browserState->IsOffTheRecord(), alreadySeen); | 1767 lastCommittedURL, true, self.browserState->IsOffTheRecord(), alreadySeen); |
| 1769 | 1768 |
| 1770 if (loadSuccess) { | 1769 if (loadSuccess) { |
| 1771 scoped_refptr<net::HttpResponseHeaders> headers = | 1770 scoped_refptr<net::HttpResponseHeaders> headers = |
| 1772 webStateImpl_->GetHttpResponseHeaders(); | 1771 webStateImpl_->GetHttpResponseHeaders(); |
| 1773 [self handleExportableFile:headers.get()]; | 1772 [self handleExportableFile:headers.get()]; |
| 1774 } | 1773 } |
| 1775 | 1774 |
| 1776 [parentTabModel_ notifyTabChanged:self]; | 1775 [parentTabModel_ notifyTabChanged:self]; |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2249 | 2248 |
| 2250 - (TabModel*)parentTabModel { | 2249 - (TabModel*)parentTabModel { |
| 2251 return parentTabModel_; | 2250 return parentTabModel_; |
| 2252 } | 2251 } |
| 2253 | 2252 |
| 2254 - (FormInputAccessoryViewController*)inputAccessoryViewController { | 2253 - (FormInputAccessoryViewController*)inputAccessoryViewController { |
| 2255 return inputAccessoryViewController_.get(); | 2254 return inputAccessoryViewController_.get(); |
| 2256 } | 2255 } |
| 2257 | 2256 |
| 2258 @end | 2257 @end |
| OLD | NEW |