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

Side by Side Diff: net/disk_cache/memory/mem_entry_impl.cc

Issue 121643003: Reorganize net/disk_cache into backend specific directories. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ios breakage Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/disk_cache/memory/mem_entry_impl.h ('k') | net/disk_cache/memory/mem_rankings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "net/disk_cache/mem_entry_impl.h" 5 #include "net/disk_cache/memory/mem_entry_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "net/base/io_buffer.h" 11 #include "net/base/io_buffer.h"
12 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
13 #include "net/disk_cache/mem_backend_impl.h" 13 #include "net/disk_cache/memory/mem_backend_impl.h"
14 #include "net/disk_cache/net_log_parameters.h" 14 #include "net/disk_cache/net_log_parameters.h"
15 15
16 using base::Time; 16 using base::Time;
17 17
18 namespace { 18 namespace {
19 19
20 const int kSparseData = 1; 20 const int kSparseData = 1;
21 21
22 // Maximum size of a sparse entry is 2 to the power of this number. 22 // Maximum size of a sparse entry is 2 to the power of this number.
23 const int kMaxSparseEntryBits = 12; 23 const int kMaxSparseEntryBits = 12;
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 scanned_len += kMaxSparseEntrySize - current_child_offset; 622 scanned_len += kMaxSparseEntrySize - current_child_offset;
623 } 623 }
624 return scanned_len; 624 return scanned_len;
625 } 625 }
626 626
627 void MemEntryImpl::DetachChild(int child_id) { 627 void MemEntryImpl::DetachChild(int child_id) {
628 children_->erase(child_id); 628 children_->erase(child_id);
629 } 629 }
630 630
631 } // namespace disk_cache 631 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/memory/mem_entry_impl.h ('k') | net/disk_cache/memory/mem_rankings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698