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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 1844753002: Histogram the scheme of an origin on the 1st navigation to it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 bool use_system_key_slot() const { return use_system_key_slot_; } 198 bool use_system_key_slot() const { return use_system_key_slot_; }
199 #endif 199 #endif
200 200
201 Profile::ProfileType profile_type() const { 201 Profile::ProfileType profile_type() const {
202 return profile_type_; 202 return profile_type_;
203 } 203 }
204 204
205 bool IsOffTheRecord() const; 205 bool IsOffTheRecord() const;
206 206
207 // In OffTheRecord profiles, we want to record a version of the
208 // Navigation.MainFrameScheme[DifferentPage] UMA histogram. The difference is
209 // that we only do it for the first time each origin is navigated to. For
210 // non-OTR profiles, this method is never called.
211 virtual bool HaveAlreadySeenOrigin(const url::Origin& origin);
212
207 IntegerPrefMember* incognito_availibility() const { 213 IntegerPrefMember* incognito_availibility() const {
208 return &incognito_availibility_pref_; 214 return &incognito_availibility_pref_;
209 } 215 }
210 216
211 chrome_browser_net::ResourcePrefetchPredictorObserver* 217 chrome_browser_net::ResourcePrefetchPredictorObserver*
212 resource_prefetch_predictor_observer() const { 218 resource_prefetch_predictor_observer() const {
213 return resource_prefetch_predictor_observer_.get(); 219 return resource_prefetch_predictor_observer_.get();
214 } 220 }
215 221
216 policy::PolicyHeaderIOHelper* policy_header_helper() const { 222 policy::PolicyHeaderIOHelper* policy_header_helper() const {
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 600
595 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 601 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
596 bool initialized_on_UI_thread_; 602 bool initialized_on_UI_thread_;
597 603
598 const Profile::ProfileType profile_type_; 604 const Profile::ProfileType profile_type_;
599 605
600 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 606 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
601 }; 607 };
602 608
603 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 609 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698