Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: ios/chrome/browser/tabs/tab.mm

Issue 2823233003: Deprecate Once-Per-Origin Navigation histograms (Closed)
Patch Set: Remove deleted .h from .mm Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 #include "components/favicon/ios/web_favicon_driver.h" 31 #include "components/favicon/ios/web_favicon_driver.h"
32 #include "components/google/core/browser/google_util.h" 32 #include "components/google/core/browser/google_util.h"
33 #include "components/history/core/browser/history_context.h" 33 #include "components/history/core/browser/history_context.h"
34 #include "components/history/core/browser/history_service.h" 34 #include "components/history/core/browser/history_service.h"
35 #include "components/history/core/browser/top_sites.h" 35 #include "components/history/core/browser/top_sites.h"
36 #include "components/history/ios/browser/web_state_top_sites_observer.h" 36 #include "components/history/ios/browser/web_state_top_sites_observer.h"
37 #include "components/infobars/core/infobar_manager.h" 37 #include "components/infobars/core/infobar_manager.h"
38 #include "components/keyed_service/core/service_access_type.h" 38 #include "components/keyed_service/core/service_access_type.h"
39 #include "components/metrics_services_manager/metrics_services_manager.h" 39 #include "components/metrics_services_manager/metrics_services_manager.h"
40 #include "components/navigation_metrics/navigation_metrics.h" 40 #include "components/navigation_metrics/navigation_metrics.h"
41 #include "components/navigation_metrics/origins_seen_service.h"
42 #include "components/prefs/pref_service.h" 41 #include "components/prefs/pref_service.h"
43 #include "components/reading_list/core/reading_list_model.h" 42 #include "components/reading_list/core/reading_list_model.h"
44 #include "components/search_engines/template_url_service.h" 43 #include "components/search_engines/template_url_service.h"
45 #include "components/sessions/core/session_types.h" 44 #include "components/sessions/core/session_types.h"
46 #include "components/sessions/ios/ios_serialized_navigation_builder.h" 45 #include "components/sessions/ios/ios_serialized_navigation_builder.h"
47 #include "components/signin/core/browser/account_reconcilor.h" 46 #include "components/signin/core/browser/account_reconcilor.h"
48 #include "components/signin/core/browser/signin_metrics.h" 47 #include "components/signin/core/browser/signin_metrics.h"
49 #import "components/signin/ios/browser/account_consistency_service.h" 48 #import "components/signin/ios/browser/account_consistency_service.h"
50 #include "components/strings/grit/components_strings.h" 49 #include "components/strings/grit/components_strings.h"
51 #include "components/url_formatter/url_formatter.h" 50 #include "components/url_formatter/url_formatter.h"
52 #include "ios/chrome/browser/application_context.h" 51 #include "ios/chrome/browser/application_context.h"
53 #import "ios/chrome/browser/autofill/autofill_controller.h" 52 #import "ios/chrome/browser/autofill/autofill_controller.h"
54 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h" 53 #import "ios/chrome/browser/autofill/form_input_accessory_view_controller.h"
55 #import "ios/chrome/browser/autofill/form_suggestion_controller.h" 54 #import "ios/chrome/browser/autofill/form_suggestion_controller.h"
56 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 55 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
57 #include "ios/chrome/browser/chrome_url_constants.h" 56 #include "ios/chrome/browser/chrome_url_constants.h"
58 #import "ios/chrome/browser/crash_loop_detection_util.h" 57 #import "ios/chrome/browser/crash_loop_detection_util.h"
59 #include "ios/chrome/browser/experimental_flags.h" 58 #include "ios/chrome/browser/experimental_flags.h"
60 #import "ios/chrome/browser/find_in_page/find_in_page_controller.h" 59 #import "ios/chrome/browser/find_in_page/find_in_page_controller.h"
61 #import "ios/chrome/browser/geolocation/omnibox_geolocation_controller.h" 60 #import "ios/chrome/browser/geolocation/omnibox_geolocation_controller.h"
62 #include "ios/chrome/browser/history/history_service_factory.h" 61 #include "ios/chrome/browser/history/history_service_factory.h"
63 #include "ios/chrome/browser/history/top_sites_factory.h" 62 #include "ios/chrome/browser/history/top_sites_factory.h"
64 #include "ios/chrome/browser/infobars/infobar_manager_impl.h" 63 #include "ios/chrome/browser/infobars/infobar_manager_impl.h"
65 #include "ios/chrome/browser/metrics/ios_chrome_origins_seen_service_factory.h"
66 #import "ios/chrome/browser/metrics/tab_usage_recorder.h" 64 #import "ios/chrome/browser/metrics/tab_usage_recorder.h"
67 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller .h" 65 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller .h"
68 #import "ios/chrome/browser/passwords/password_controller.h" 66 #import "ios/chrome/browser/passwords/password_controller.h"
69 #import "ios/chrome/browser/passwords/passwords_ui_delegate_impl.h" 67 #import "ios/chrome/browser/passwords/passwords_ui_delegate_impl.h"
70 #include "ios/chrome/browser/pref_names.h" 68 #include "ios/chrome/browser/pref_names.h"
71 #include "ios/chrome/browser/reading_list/reading_list_model_factory.h" 69 #include "ios/chrome/browser/reading_list/reading_list_model_factory.h"
72 #include "ios/chrome/browser/search_engines/template_url_service_factory.h" 70 #include "ios/chrome/browser/search_engines/template_url_service_factory.h"
73 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" 71 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h"
74 #include "ios/chrome/browser/signin/account_consistency_service_factory.h" 72 #include "ios/chrome/browser/signin/account_consistency_service_factory.h"
75 #include "ios/chrome/browser/signin/account_reconcilor_factory.h" 73 #include "ios/chrome/browser/signin/account_reconcilor_factory.h"
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 } 1558 }
1561 if (loadSuccess) 1559 if (loadSuccess)
1562 [autoReloadBridge_ loadFinishedForURL:lastCommittedURL wasPost:wasPost]; 1560 [autoReloadBridge_ loadFinishedForURL:lastCommittedURL wasPost:wasPost];
1563 else 1561 else
1564 [autoReloadBridge_ loadFailedForURL:lastCommittedURL wasPost:wasPost]; 1562 [autoReloadBridge_ loadFailedForURL:lastCommittedURL wasPost:wasPost];
1565 [webControllerSnapshotHelper_ setSnapshotCoalescingEnabled:YES]; 1563 [webControllerSnapshotHelper_ setSnapshotCoalescingEnabled:YES];
1566 if (!loadSuccess) { 1564 if (!loadSuccess) {
1567 [fullScreenController_ disableFullScreen]; 1565 [fullScreenController_ disableFullScreen];
1568 } 1566 }
1569 [self recordInterfaceOrientation]; 1567 [self recordInterfaceOrientation];
1570 navigation_metrics::OriginsSeenService* originsSeenService =
1571 IOSChromeOriginsSeenServiceFactory::GetForBrowserState(self.browserState);
1572 bool alreadySeen = originsSeenService->Insert(url::Origin(lastCommittedURL));
1573 navigation_metrics::RecordMainFrameNavigation( 1568 navigation_metrics::RecordMainFrameNavigation(
1574 lastCommittedURL, true, self.browserState->IsOffTheRecord(), alreadySeen); 1569 lastCommittedURL, true, self.browserState->IsOffTheRecord());
1575 1570
1576 if (loadSuccess) { 1571 if (loadSuccess) {
1577 scoped_refptr<net::HttpResponseHeaders> headers = 1572 scoped_refptr<net::HttpResponseHeaders> headers =
1578 webStateImpl_->GetHttpResponseHeaders(); 1573 webStateImpl_->GetHttpResponseHeaders();
1579 [self handleExportableFile:headers.get()]; 1574 [self handleExportableFile:headers.get()];
1580 } 1575 }
1581 1576
1582 [parentTabModel_ notifyTabChanged:self]; 1577 [parentTabModel_ notifyTabChanged:self];
1583 1578
1584 if (parentTabModel_) { 1579 if (parentTabModel_) {
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
1980 1975
1981 - (TabModel*)parentTabModel { 1976 - (TabModel*)parentTabModel {
1982 return parentTabModel_; 1977 return parentTabModel_;
1983 } 1978 }
1984 1979
1985 - (FormInputAccessoryViewController*)inputAccessoryViewController { 1980 - (FormInputAccessoryViewController*)inputAccessoryViewController {
1986 return inputAccessoryViewController_.get(); 1981 return inputAccessoryViewController_.get();
1987 } 1982 }
1988 1983
1989 @end 1984 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/metrics/ios_chrome_origins_seen_service_factory.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698