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/net/quota_policy_channel_id_store.h" | 5 #include "chrome/browser/net/quota_policy_channel_id_store.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/basictypes.h" | |
10 #include "base/bind.h" | 9 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" |
13 #include "base/logging.h" | 12 #include "base/logging.h" |
14 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
15 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" |
16 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
17 #include "base/threading/thread_restrictions.h" | 16 #include "base/threading/thread_restrictions.h" |
18 #include "net/cookies/cookie_util.h" | 17 #include "net/cookies/cookie_util.h" |
19 #include "net/extras/sqlite/sqlite_channel_id_store.h" | 18 #include "net/extras/sqlite/sqlite_channel_id_store.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 void QuotaPolicyChannelIDStore::OnLoad( | 69 void QuotaPolicyChannelIDStore::OnLoad( |
71 const LoadedCallback& loaded_callback, | 70 const LoadedCallback& loaded_callback, |
72 scoped_ptr<ChannelIDVector> channel_ids) { | 71 scoped_ptr<ChannelIDVector> channel_ids) { |
73 for (ChannelIDVector::const_iterator channel_id = channel_ids->begin(); | 72 for (ChannelIDVector::const_iterator channel_id = channel_ids->begin(); |
74 channel_id != channel_ids->end(); | 73 channel_id != channel_ids->end(); |
75 ++channel_id) { | 74 ++channel_id) { |
76 server_identifiers_.insert((*channel_id)->server_identifier()); | 75 server_identifiers_.insert((*channel_id)->server_identifier()); |
77 } | 76 } |
78 loaded_callback.Run(std::move(channel_ids)); | 77 loaded_callback.Run(std::move(channel_ids)); |
79 } | 78 } |
OLD | NEW |