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 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_channel_id_helper.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "net/ssl/channel_id_service.h" | 16 #include "net/ssl/channel_id_service.h" |
17 #include "net/url_request/url_request_context.h" | 17 #include "net/url_request/url_request_context.h" |
18 #include "net/url_request/url_request_context_getter.h" | 18 #include "net/url_request/url_request_context_getter.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class BrowsingDataChannelIDHelperImpl | 24 class BrowsingDataChannelIDHelperImpl |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 net::ChannelIDStore::ChannelIDList channel_id_list; | 183 net::ChannelIDStore::ChannelIDList channel_id_list; |
184 for (const auto& pair : channel_id_map_) | 184 for (const auto& pair : channel_id_map_) |
185 channel_id_list.push_back(pair.second); | 185 channel_id_list.push_back(pair.second); |
186 callback.Run(channel_id_list); | 186 callback.Run(channel_id_list); |
187 } | 187 } |
188 | 188 |
189 void CannedBrowsingDataChannelIDHelper::DeleteChannelID( | 189 void CannedBrowsingDataChannelIDHelper::DeleteChannelID( |
190 const std::string& server_id) { | 190 const std::string& server_id) { |
191 NOTREACHED(); | 191 NOTREACHED(); |
192 } | 192 } |
OLD | NEW |