| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h" | 5 #include "ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 38 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
| 39 #include "ios/web/public/web_thread.h" | 39 #include "ios/web/public/web_thread.h" |
| 40 #include "net/base/net_errors.h" | 40 #include "net/base/net_errors.h" |
| 41 #include "net/cookies/cookie_store.h" | 41 #include "net/cookies/cookie_store.h" |
| 42 #include "net/http/transport_security_state.h" | 42 #include "net/http/transport_security_state.h" |
| 43 #include "net/ssl/channel_id_service.h" | 43 #include "net/ssl/channel_id_service.h" |
| 44 #include "net/ssl/channel_id_store.h" | 44 #include "net/ssl/channel_id_store.h" |
| 45 #include "net/url_request/url_request_context.h" | 45 #include "net/url_request/url_request_context.h" |
| 46 #include "net/url_request/url_request_context_getter.h" | 46 #include "net/url_request/url_request_context_getter.h" |
| 47 | 47 |
| 48 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 49 #error "This file requires ARC support." |
| 50 #endif |
| 51 |
| 48 using base::UserMetricsAction; | 52 using base::UserMetricsAction; |
| 49 using web::WebThread; | 53 using web::WebThread; |
| 50 | 54 |
| 51 namespace { | 55 namespace { |
| 52 | 56 |
| 53 using CallbackList = base::CallbackList<void( | 57 using CallbackList = base::CallbackList<void( |
| 54 const IOSChromeBrowsingDataRemover::NotificationDetails&)>; | 58 const IOSChromeBrowsingDataRemover::NotificationDetails&)>; |
| 55 | 59 |
| 56 // Contains all registered callbacks for browsing data removed notifications. | 60 // Contains all registered callbacks for browsing data removed notifications. |
| 57 CallbackList* g_on_browsing_data_removed_callbacks = nullptr; | 61 CallbackList* g_on_browsing_data_removed_callbacks = nullptr; |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 waiting_for_clear_autofill_origin_urls_ = false; | 507 waiting_for_clear_autofill_origin_urls_ = false; |
| 504 NotifyAndDeleteIfDone(); | 508 NotifyAndDeleteIfDone(); |
| 505 } | 509 } |
| 506 | 510 |
| 507 // static | 511 // static |
| 508 IOSChromeBrowsingDataRemover::CallbackSubscription | 512 IOSChromeBrowsingDataRemover::CallbackSubscription |
| 509 IOSChromeBrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( | 513 IOSChromeBrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( |
| 510 const IOSChromeBrowsingDataRemover::Callback& callback) { | 514 const IOSChromeBrowsingDataRemover::Callback& callback) { |
| 511 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); | 515 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); |
| 512 } | 516 } |
| OLD | NEW |