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

Side by Side Diff: content/browser/cache_storage/cache_storage_manager.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 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 "content/browser/cache_storage/cache_storage_manager.h" 5 #include "content/browser/cache_storage/cache_storage_manager.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/barrier_closure.h" 13 #include "base/barrier_closure.h"
14 #include "base/bind.h" 14 #include "base/bind.h"
15 #include "base/files/file_enumerator.h" 15 #include "base/files/file_enumerator.h"
16 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
17 #include "base/id_map.h" 17 #include "base/id_map.h"
18 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
19 #include "base/sequenced_task_runner.h"
19 #include "base/sha1.h" 20 #include "base/sha1.h"
20 #include "base/stl_util.h" 21 #include "base/stl_util.h"
21 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
22 #include "base/strings/string_util.h" 23 #include "base/strings/string_util.h"
23 #include "base/threading/thread_task_runner_handle.h" 24 #include "base/threading/thread_task_runner_handle.h"
24 #include "base/time/time.h" 25 #include "base/time/time.h"
25 #include "content/browser/cache_storage/cache_storage.h" 26 #include "content/browser/cache_storage/cache_storage.h"
26 #include "content/browser/cache_storage/cache_storage.pb.h" 27 #include "content/browser/cache_storage/cache_storage.pb.h"
27 #include "content/browser/cache_storage/cache_storage_quota_client.h" 28 #include "content/browser/cache_storage/cache_storage_quota_client.h"
28 #include "content/browser/service_worker/service_worker_context_core.h" 29 #include "content/browser/service_worker/service_worker_context_core.h"
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 const base::FilePath& root_path, 445 const base::FilePath& root_path,
445 const GURL& origin) { 446 const GURL& origin) {
446 const std::string identifier = storage::GetIdentifierFromOrigin(origin); 447 const std::string identifier = storage::GetIdentifierFromOrigin(origin);
447 const std::string origin_hash = base::SHA1HashString(identifier); 448 const std::string origin_hash = base::SHA1HashString(identifier);
448 const std::string origin_hash_hex = base::ToLowerASCII( 449 const std::string origin_hash_hex = base::ToLowerASCII(
449 base::HexEncode(origin_hash.c_str(), origin_hash.length())); 450 base::HexEncode(origin_hash.c_str(), origin_hash.length()));
450 return root_path.AppendASCII(origin_hash_hex); 451 return root_path.AppendASCII(origin_hash_hex);
451 } 452 }
452 453
453 } // namespace content 454 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698