| 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_CHROME_BROWSER_STATE_H_ | 5 #ifndef IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_H_ |
| 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_H_ | 6 #define IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 namespace base { | 26 namespace base { |
| 27 class SequencedTaskRunner; | 27 class SequencedTaskRunner; |
| 28 class Time; | 28 class Time; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace net { | 31 namespace net { |
| 32 class SSLConfigService; | 32 class SSLConfigService; |
| 33 class URLRequestInterceptor; | 33 class URLRequestInterceptor; |
| 34 } | 34 } |
| 35 | 35 |
| 36 namespace syncable_prefs { | 36 namespace sync_preferences { |
| 37 class PrefServiceSyncable; | 37 class PrefServiceSyncable; |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace web { | 40 namespace web { |
| 41 class WebUIIOS; | 41 class WebUIIOS; |
| 42 } | 42 } |
| 43 | 43 |
| 44 namespace ios { | 44 namespace ios { |
| 45 | 45 |
| 46 enum class ChromeBrowserStateType { | 46 enum class ChromeBrowserStateType { |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Retrieves a pointer to the PrefService that manages the preferences | 89 // Retrieves a pointer to the PrefService that manages the preferences |
| 90 // for OffTheRecord browser states. | 90 // for OffTheRecord browser states. |
| 91 virtual PrefService* GetOffTheRecordPrefs() = 0; | 91 virtual PrefService* GetOffTheRecordPrefs() = 0; |
| 92 | 92 |
| 93 // Allows access to ChromeBrowserStateIOData without going through | 93 // Allows access to ChromeBrowserStateIOData without going through |
| 94 // ResourceContext that is not compiled on iOS. This method must be called on | 94 // ResourceContext that is not compiled on iOS. This method must be called on |
| 95 // UI thread, but the returned object must only be accessed on the IO thread. | 95 // UI thread, but the returned object must only be accessed on the IO thread. |
| 96 virtual ChromeBrowserStateIOData* GetIOData() = 0; | 96 virtual ChromeBrowserStateIOData* GetIOData() = 0; |
| 97 | 97 |
| 98 // Retrieves a pointer to the PrefService that manages the preferences as | 98 // Retrieves a pointer to the PrefService that manages the preferences as |
| 99 // a syncable_prefs::PrefServiceSyncable. | 99 // a sync_preferences::PrefServiceSyncable. |
| 100 virtual syncable_prefs::PrefServiceSyncable* GetSyncablePrefs(); | 100 virtual sync_preferences::PrefServiceSyncable* GetSyncablePrefs(); |
| 101 | 101 |
| 102 // Deletes all network related data since |time|. It deletes transport | 102 // Deletes all network related data since |time|. It deletes transport |
| 103 // security state since |time| and it also deletes HttpServerProperties data. | 103 // security state since |time| and it also deletes HttpServerProperties data. |
| 104 // Works asynchronously, however if the |completion| callback is non-null, it | 104 // Works asynchronously, however if the |completion| callback is non-null, it |
| 105 // will be posted on the UI thread once the removal process completes. | 105 // will be posted on the UI thread once the removal process completes. |
| 106 // Be aware that theoretically it is possible that |completion| will be | 106 // Be aware that theoretically it is possible that |completion| will be |
| 107 // invoked after the Profile instance has been destroyed. | 107 // invoked after the Profile instance has been destroyed. |
| 108 virtual void ClearNetworkingHistorySince(base::Time time, | 108 virtual void ClearNetworkingHistorySince(base::Time time, |
| 109 const base::Closure& completion) = 0; | 109 const base::Closure& completion) = 0; |
| 110 | 110 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 friend class ::TestChromeBrowserStateManager; | 149 friend class ::TestChromeBrowserStateManager; |
| 150 | 150 |
| 151 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; | 151 scoped_refptr<net::URLRequestContextGetter> request_context_getter_; |
| 152 | 152 |
| 153 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserState); | 153 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserState); |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace ios | 156 } // namespace ios |
| 157 | 157 |
| 158 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_H_ | 158 #endif // IOS_CHROME_BROWSER_BROWSER_STATE_CHROME_BROWSER_STATE_H_ |
| OLD | NEW |