OLD | NEW |
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_SERVER_BOUND_CERT_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "net/base/server_bound_cert_store.h" | 12 #include "net/ssl/server_bound_cert_store.h" |
13 | 13 |
14 class Profile; | 14 class Profile; |
15 | 15 |
16 // BrowsingDataServerBoundCertHelper is an interface for classes dealing with | 16 // BrowsingDataServerBoundCertHelper is an interface for classes dealing with |
17 // aggregating and deleting browsing data stored in the server bound cert store. | 17 // aggregating and deleting browsing data stored in the server bound cert store. |
18 // A client of this class need to call StartFetching from the UI thread to | 18 // A client of this class need to call StartFetching from the UI thread to |
19 // initiate the flow, and it'll be notified by the callback in its UI thread at | 19 // initiate the flow, and it'll be notified by the callback in its UI thread at |
20 // some later point. | 20 // some later point. |
21 class BrowsingDataServerBoundCertHelper | 21 class BrowsingDataServerBoundCertHelper |
22 : public base::RefCountedThreadSafe<BrowsingDataServerBoundCertHelper> { | 22 : public base::RefCountedThreadSafe<BrowsingDataServerBoundCertHelper> { |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 typedef std::map<std::string, net::ServerBoundCertStore::ServerBoundCert> | 82 typedef std::map<std::string, net::ServerBoundCertStore::ServerBoundCert> |
83 ServerBoundCertMap; | 83 ServerBoundCertMap; |
84 ServerBoundCertMap server_bound_cert_map_; | 84 ServerBoundCertMap server_bound_cert_map_; |
85 | 85 |
86 FetchResultCallback completion_callback_; | 86 FetchResultCallback completion_callback_; |
87 | 87 |
88 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataServerBoundCertHelper); | 88 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataServerBoundCertHelper); |
89 }; | 89 }; |
90 | 90 |
91 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H
_ | 91 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_SERVER_BOUND_CERT_HELPER_H
_ |
OLD | NEW |