Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: chrome/browser/net/quota_policy_channel_id_store.cc

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram_macros.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "base/threading/thread_restrictions.h" 16 #include "base/threading/thread_restrictions.h"
17 #include "net/cookies/cookie_util.h" 17 #include "net/cookies/cookie_util.h"
18 #include "net/extras/sqlite/sqlite_channel_id_store.h" 18 #include "net/extras/sqlite/sqlite_channel_id_store.h"
19 #include "storage/browser/quota/special_storage_policy.h" 19 #include "storage/browser/quota/special_storage_policy.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 QuotaPolicyChannelIDStore::QuotaPolicyChannelIDStore( 22 QuotaPolicyChannelIDStore::QuotaPolicyChannelIDStore(
23 const base::FilePath& path, 23 const base::FilePath& path,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void QuotaPolicyChannelIDStore::OnLoad( 69 void QuotaPolicyChannelIDStore::OnLoad(
70 const LoadedCallback& loaded_callback, 70 const LoadedCallback& loaded_callback,
71 std::unique_ptr<ChannelIDVector> channel_ids) { 71 std::unique_ptr<ChannelIDVector> channel_ids) {
72 for (ChannelIDVector::const_iterator channel_id = channel_ids->begin(); 72 for (ChannelIDVector::const_iterator channel_id = channel_ids->begin();
73 channel_id != channel_ids->end(); 73 channel_id != channel_ids->end();
74 ++channel_id) { 74 ++channel_id) {
75 server_identifiers_.insert((*channel_id)->server_identifier()); 75 server_identifiers_.insert((*channel_id)->server_identifier());
76 } 76 }
77 loaded_callback.Run(std::move(channel_ids)); 77 loaded_callback.Run(std::move(channel_ids));
78 } 78 }
OLDNEW
« no previous file with comments | « chrome/browser/net/predictor.cc ('k') | chrome/browser/net/resource_prefetch_predictor_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698