OLD | NEW |
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> |
| 11 #include <set> |
11 #include <string> | 12 #include <string> |
12 #include <vector> | 13 #include <vector> |
13 | 14 |
14 #include "base/callback_forward.h" | 15 #include "base/callback_forward.h" |
15 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
16 #include "base/macros.h" | 17 #include "base/macros.h" |
17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
18 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
20 #include "base/synchronization/lock.h" | 21 #include "base/synchronization/lock.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 | 198 |
198 bool use_system_key_slot() const { return use_system_key_slot_; } | 199 bool use_system_key_slot() const { return use_system_key_slot_; } |
199 #endif | 200 #endif |
200 | 201 |
201 Profile::ProfileType profile_type() const { | 202 Profile::ProfileType profile_type() const { |
202 return profile_type_; | 203 return profile_type_; |
203 } | 204 } |
204 | 205 |
205 bool IsOffTheRecord() const; | 206 bool IsOffTheRecord() const; |
206 | 207 |
| 208 // Used when deciding whether or not to record |
| 209 // Navigation.SchemePerUniqueOrigin[OTR]. Uses |origins_seen_|. |
| 210 bool HaveAlreadySeenOrigin(const url::Origin& origin); |
| 211 |
207 IntegerPrefMember* incognito_availibility() const { | 212 IntegerPrefMember* incognito_availibility() const { |
208 return &incognito_availibility_pref_; | 213 return &incognito_availibility_pref_; |
209 } | 214 } |
210 | 215 |
211 chrome_browser_net::ResourcePrefetchPredictorObserver* | 216 chrome_browser_net::ResourcePrefetchPredictorObserver* |
212 resource_prefetch_predictor_observer() const { | 217 resource_prefetch_predictor_observer() const { |
213 return resource_prefetch_predictor_observer_.get(); | 218 return resource_prefetch_predictor_observer_.get(); |
214 } | 219 } |
215 | 220 |
216 policy::PolicyHeaderIOHelper* policy_header_helper() const { | 221 policy::PolicyHeaderIOHelper* policy_header_helper() const { |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 extension_throttle_manager_; | 595 extension_throttle_manager_; |
591 #endif | 596 #endif |
592 | 597 |
593 mutable DevToolsNetworkControllerHandle network_controller_handle_; | 598 mutable DevToolsNetworkControllerHandle network_controller_handle_; |
594 | 599 |
595 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. | 600 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. |
596 bool initialized_on_UI_thread_; | 601 bool initialized_on_UI_thread_; |
597 | 602 |
598 const Profile::ProfileType profile_type_; | 603 const Profile::ProfileType profile_type_; |
599 | 604 |
| 605 // Used by |HaveAlreadySeenOrigin|. |
| 606 std::set<url::Origin> origins_seen_; |
| 607 |
600 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); | 608 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); |
601 }; | 609 }; |
602 | 610 |
603 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ | 611 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ |
OLD | NEW |