OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHANNEL_ID_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 #include <string> | 11 #include <string> |
10 | 12 |
11 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/macros.h" |
12 #include "net/ssl/channel_id_store.h" | 15 #include "net/ssl/channel_id_store.h" |
13 | 16 |
14 namespace net { | 17 namespace net { |
15 class URLRequestContextGetter; | 18 class URLRequestContextGetter; |
16 } | 19 } |
17 | 20 |
18 // BrowsingDataChannelIDHelper is an interface for classes dealing with | 21 // BrowsingDataChannelIDHelper is an interface for classes dealing with |
19 // aggregating and deleting browsing data stored in the channel ID store. | 22 // aggregating and deleting browsing data stored in the channel ID store. |
20 // A client of this class need to call StartFetching from the UI thread to | 23 // A client of this class need to call StartFetching from the UI thread to |
21 // initiate the flow, and it'll be notified by the callback in its UI thread at | 24 // initiate the flow, and it'll be notified by the callback in its UI thread at |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void FinishFetching(const FetchResultCallback& callback); | 80 void FinishFetching(const FetchResultCallback& callback); |
78 | 81 |
79 typedef std::map<std::string, net::ChannelIDStore::ChannelID> | 82 typedef std::map<std::string, net::ChannelIDStore::ChannelID> |
80 ChannelIDMap; | 83 ChannelIDMap; |
81 ChannelIDMap channel_id_map_; | 84 ChannelIDMap channel_id_map_; |
82 | 85 |
83 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataChannelIDHelper); | 86 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataChannelIDHelper); |
84 }; | 87 }; |
85 | 88 |
86 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ | 89 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_CHANNEL_ID_HELPER_H_ |
OLD | NEW |