OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IMP
L_H_ | 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IMP
L_H_ |
6 #define IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IMP
L_H_ | 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_IMP
L_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" | 9 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" |
10 #include "ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_i
o_data.h" | 10 #include "ios/chrome/browser/browser_state/off_the_record_chrome_browser_state_i
o_data.h" |
11 | 11 |
12 namespace syncable_prefs { | 12 namespace sync_preferences { |
13 class PrefServiceSyncable; | 13 class PrefServiceSyncable; |
14 } | 14 } |
15 | 15 |
16 // The implementation of ChromeBrowserState that is used for incognito browsing. | 16 // The implementation of ChromeBrowserState that is used for incognito browsing. |
17 // Each OffTheRecordChromeBrowserStateImpl instance is associated with and owned | 17 // Each OffTheRecordChromeBrowserStateImpl instance is associated with and owned |
18 // by a non-incognito ChromeBrowserState instance. | 18 // by a non-incognito ChromeBrowserState instance. |
19 class OffTheRecordChromeBrowserStateImpl : public ios::ChromeBrowserState { | 19 class OffTheRecordChromeBrowserStateImpl : public ios::ChromeBrowserState { |
20 public: | 20 public: |
21 ~OffTheRecordChromeBrowserStateImpl() override; | 21 ~OffTheRecordChromeBrowserStateImpl() override; |
22 | 22 |
(...skipping 25 matching lines...) Expand all Loading... |
48 // |original_chrome_browser_state_| is the non-incognito | 48 // |original_chrome_browser_state_| is the non-incognito |
49 // ChromeBrowserState instance that owns this instance. | 49 // ChromeBrowserState instance that owns this instance. |
50 OffTheRecordChromeBrowserStateImpl( | 50 OffTheRecordChromeBrowserStateImpl( |
51 ios::ChromeBrowserState* original_chrome_browser_state, | 51 ios::ChromeBrowserState* original_chrome_browser_state, |
52 const base::FilePath& otr_path); | 52 const base::FilePath& otr_path); |
53 | 53 |
54 base::FilePath otr_state_path_; | 54 base::FilePath otr_state_path_; |
55 ios::ChromeBrowserState* original_chrome_browser_state_; // weak | 55 ios::ChromeBrowserState* original_chrome_browser_state_; // weak |
56 | 56 |
57 // Weak pointer owned by |original_chrome_browser_state_|. | 57 // Weak pointer owned by |original_chrome_browser_state_|. |
58 syncable_prefs::PrefServiceSyncable* prefs_; | 58 sync_preferences::PrefServiceSyncable* prefs_; |
59 | 59 |
60 std::unique_ptr<OffTheRecordChromeBrowserStateIOData::Handle> io_data_; | 60 std::unique_ptr<OffTheRecordChromeBrowserStateIOData::Handle> io_data_; |
61 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 61 std::unique_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(OffTheRecordChromeBrowserStateImpl); | 63 DISALLOW_COPY_AND_ASSIGN(OffTheRecordChromeBrowserStateImpl); |
64 }; | 64 }; |
65 | 65 |
66 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_
IMPL_H_ | 66 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_OFF_THE_RECORD_CHROME_BROWSER_STATE_
IMPL_H_ |
OLD | NEW |