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

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

Issue 238863005: Domain Reliability: Remove browsing data when requested. (Closed) Base URL: http://git.chromium.org/chromium/src.git@domrel_bakedin
Patch Set: rebase Created 6 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_IMPL_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 const base::FilePath& partition_path, 88 const base::FilePath& partition_path,
89 bool in_memory) const; 89 bool in_memory) const;
90 90
91 // Deletes all network related data since |time|. It deletes transport 91 // Deletes all network related data since |time|. It deletes transport
92 // security state since |time| and also deletes HttpServerProperties data. 92 // security state since |time| and also deletes HttpServerProperties data.
93 // Works asynchronously, however if the |completion| callback is non-null, 93 // Works asynchronously, however if the |completion| callback is non-null,
94 // it will be posted on the UI thread once the removal process completes. 94 // it will be posted on the UI thread once the removal process completes.
95 void ClearNetworkingHistorySince(base::Time time, 95 void ClearNetworkingHistorySince(base::Time time,
96 const base::Closure& completion); 96 const base::Closure& completion);
97 97
98 // Clears part or all of the state of the Domain Reliability Monitor. If
99 // |clear_contexts| is true, clears the (site-provided) contexts, which are
100 // cookie-esque; if it is false, clears only the (logged) beacons within
101 // them, which are history-esque.
102 void ClearDomainReliabilityMonitor(bool clear_contexts,
Mike West 2014/04/25 07:17:31 Nit: Can you change this to an enum? Magical bools
Deprecated (see juliatuttle) 2014/05/01 21:53:25 Done. (That was a *pain*.)
103 const base::Closure& completion);
104
98 private: 105 private:
99 typedef std::map<StoragePartitionDescriptor, 106 typedef std::map<StoragePartitionDescriptor,
100 scoped_refptr<ChromeURLRequestContextGetter>, 107 scoped_refptr<ChromeURLRequestContextGetter>,
101 StoragePartitionDescriptorLess> 108 StoragePartitionDescriptorLess>
102 ChromeURLRequestContextGetterMap; 109 ChromeURLRequestContextGetterMap;
103 110
104 // Lazily initialize ProfileParams. We do this on the calls to 111 // Lazily initialize ProfileParams. We do this on the calls to
105 // Get*RequestContextGetter(), so we only initialize ProfileParams right 112 // Get*RequestContextGetter(), so we only initialize ProfileParams right
106 // before posting a task to the IO thread to start using them. This prevents 113 // before posting a task to the IO thread to start using them. This prevents
107 // objects that are supposed to be deleted on the IO thread, but are created 114 // objects that are supposed to be deleted on the IO thread, but are created
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 const StoragePartitionDescriptor& partition_descriptor) 196 const StoragePartitionDescriptor& partition_descriptor)
190 const OVERRIDE; 197 const OVERRIDE;
191 198
192 // Deletes all network related data since |time|. It deletes transport 199 // Deletes all network related data since |time|. It deletes transport
193 // security state since |time| and also deletes HttpServerProperties data. 200 // security state since |time| and also deletes HttpServerProperties data.
194 // Works asynchronously, however if the |completion| callback is non-null, 201 // Works asynchronously, however if the |completion| callback is non-null,
195 // it will be posted on the UI thread once the removal process completes. 202 // it will be posted on the UI thread once the removal process completes.
196 void ClearNetworkingHistorySinceOnIOThread(base::Time time, 203 void ClearNetworkingHistorySinceOnIOThread(base::Time time,
197 const base::Closure& completion); 204 const base::Closure& completion);
198 205
206 void ClearDomainReliabilityMonitorOnIOThread(
207 bool clear_contexts,
208 const base::Closure& completion);
209
199 // Lazy initialization params. 210 // Lazy initialization params.
200 mutable scoped_ptr<LazyParams> lazy_params_; 211 mutable scoped_ptr<LazyParams> lazy_params_;
201 212
202 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_; 213 mutable scoped_ptr<net::HttpTransactionFactory> main_http_factory_;
203 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_; 214 mutable scoped_ptr<net::FtpTransactionFactory> ftp_factory_;
204 215
205 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain 216 // Same as |ProfileIOData::http_server_properties_|, owned there to maintain
206 // destruction ordering. 217 // destruction ordering.
207 mutable chrome_browser_net::HttpServerPropertiesManager* 218 mutable chrome_browser_net::HttpServerPropertiesManager*
208 http_server_properties_manager_; 219 http_server_properties_manager_;
(...skipping 10 matching lines...) Expand all
219 230
220 // Parameters needed for isolated apps. 231 // Parameters needed for isolated apps.
221 base::FilePath profile_path_; 232 base::FilePath profile_path_;
222 int app_cache_max_size_; 233 int app_cache_max_size_;
223 int app_media_cache_max_size_; 234 int app_media_cache_max_size_;
224 235
225 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData); 236 DISALLOW_COPY_AND_ASSIGN(ProfileImplIOData);
226 }; 237 };
227 238
228 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_ 239 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_IO_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698