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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover.h

Issue 10866013: Convert the browsing_data pyauto tests to chrome tests. Remove the ClearBrowsingData automation cod… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix hang on mac Created 8 years, 4 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 | Annotate | Revision Log
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_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 void ClearCookiesOnIOThread(net::URLRequestContextGetter* rq_context); 272 void ClearCookiesOnIOThread(net::URLRequestContextGetter* rq_context);
273 273
274 // Invoked on the IO thread to delete server bound certs. 274 // Invoked on the IO thread to delete server bound certs.
275 void ClearServerBoundCertsOnIOThread( 275 void ClearServerBoundCertsOnIOThread(
276 net::URLRequestContextGetter* rq_context); 276 net::URLRequestContextGetter* rq_context);
277 277
278 // Callback when server bound certs have been deleted. Invokes 278 // Callback when server bound certs have been deleted. Invokes
279 // NotifyAndDeleteIfDone. 279 // NotifyAndDeleteIfDone.
280 void OnClearedServerBoundCerts(); 280 void OnClearedServerBoundCerts();
281 281
282 // Callback on the DB thread so that we can wait for the form data to be
283 // cleared.
284 void FormDataDBThreadHop();
285
286 // Callback from the above method.
287 void OnClearedFormData();
288
282 // Calculate the begin time for the deletion range specified by |time_period|. 289 // Calculate the begin time for the deletion range specified by |time_period|.
283 base::Time CalculateBeginDeleteTime(TimePeriod time_period); 290 base::Time CalculateBeginDeleteTime(TimePeriod time_period);
284 291
285 // Returns true if we're all done. 292 // Returns true if we're all done.
286 bool AllDone(); 293 bool AllDone();
287 294
288 // Setter for removing_; DCHECKs that we can only start removing if we're not 295 // Setter for removing_; DCHECKs that we can only start removing if we're not
289 // already removing, and vice-versa. 296 // already removing, and vice-versa.
290 static void set_removing(bool removing); 297 static void set_removing(bool removing);
291 298
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 bool waiting_for_clear_nacl_cache_; 341 bool waiting_for_clear_nacl_cache_;
335 // Non-zero if waiting for cookies to be cleared. 342 // Non-zero if waiting for cookies to be cleared.
336 int waiting_for_clear_cookies_count_; 343 int waiting_for_clear_cookies_count_;
337 bool waiting_for_clear_history_; 344 bool waiting_for_clear_history_;
338 bool waiting_for_clear_local_storage_; 345 bool waiting_for_clear_local_storage_;
339 bool waiting_for_clear_networking_history_; 346 bool waiting_for_clear_networking_history_;
340 bool waiting_for_clear_server_bound_certs_; 347 bool waiting_for_clear_server_bound_certs_;
341 bool waiting_for_clear_plugin_data_; 348 bool waiting_for_clear_plugin_data_;
342 bool waiting_for_clear_quota_managed_data_; 349 bool waiting_for_clear_quota_managed_data_;
343 bool waiting_for_clear_content_licenses_; 350 bool waiting_for_clear_content_licenses_;
351 bool waiting_for_clear_form_;
344 352
345 // Tracking how many origins need to be deleted, and whether we're finished 353 // Tracking how many origins need to be deleted, and whether we're finished
346 // gathering origins. 354 // gathering origins.
347 int quota_managed_origins_to_delete_count_; 355 int quota_managed_origins_to_delete_count_;
348 int quota_managed_storage_types_to_delete_count_; 356 int quota_managed_storage_types_to_delete_count_;
349 357
350 // The removal mask for the current removal operation. 358 // The removal mask for the current removal operation.
351 int remove_mask_; 359 int remove_mask_;
352 360
353 // The origin for the current removal operation. 361 // The origin for the current removal operation.
354 GURL remove_origin_; 362 GURL remove_origin_;
355 363
356 // From which types of origins should we remove data? 364 // From which types of origins should we remove data?
357 int origin_set_mask_; 365 int origin_set_mask_;
358 366
359 ObserverList<Observer> observer_list_; 367 ObserverList<Observer> observer_list_;
360 368
361 // Used if we need to clear history. 369 // Used if we need to clear history.
362 CancelableRequestConsumer request_consumer_; 370 CancelableRequestConsumer request_consumer_;
363 371
364 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover); 372 DISALLOW_COPY_AND_ASSIGN(BrowsingDataRemover);
365 }; 373 };
366 374
367 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_ 375 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_REMOVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/browsing_data/browsing_data_remover.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698