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

Side by Side Diff: net/disk_cache/entry_impl.cc

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup pipelining compatibility client Created 6 years, 10 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
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/entry_impl.h" 5 #include "net/disk_cache/entry_impl.h"
6 6
7 #include "base/hash.h" 7 #include "base/hash.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.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/backend_impl.h" 13 #include "net/disk_cache/backend_impl.h"
14 #include "net/disk_cache/bitmap.h" 14 #include "net/disk_cache/bitmap.h"
15 #include "net/disk_cache/cache_util.h" 15 #include "net/disk_cache/cache_util.h"
16 #include "net/disk_cache/disk_format.h" 16 #include "net/disk_cache/disk_format.h"
17 #include "net/disk_cache/histogram_macros.h"
18 #include "net/disk_cache/net_log_parameters.h" 17 #include "net/disk_cache/net_log_parameters.h"
19 #include "net/disk_cache/sparse_control.h" 18 #include "net/disk_cache/sparse_control.h"
20 19
20 #define CACHE_HISTOGRAM_MACROS_BACKEND_IMPL_OBJ backend_
21 #include "net/disk_cache/histogram_macros.h"
22
21 using base::Time; 23 using base::Time;
22 using base::TimeDelta; 24 using base::TimeDelta;
23 using base::TimeTicks; 25 using base::TimeTicks;
24 26
25 namespace { 27 namespace {
26 28
27 // Index for the file used to store the key, if any (files_[kKeyFileIndex]). 29 // Index for the file used to store the key, if any (files_[kKeyFileIndex]).
28 const int kKeyFileIndex = 3; 30 const int kKeyFileIndex = 3;
29 31
30 // This class implements FileIOCallback to buffer the callback from a file IO 32 // This class implements FileIOCallback to buffer the callback from a file IO
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 Trace("%s 0x%p 0x%x 0x%x", msg, reinterpret_cast<void*>(this), 1543 Trace("%s 0x%p 0x%x 0x%x", msg, reinterpret_cast<void*>(this),
1542 entry_.address().value(), node_.address().value()); 1544 entry_.address().value(), node_.address().value());
1543 1545
1544 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0], 1546 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0],
1545 entry_.Data()->data_addr[1], entry_.Data()->long_key); 1547 entry_.Data()->data_addr[1], entry_.Data()->long_key);
1546 1548
1547 Trace(" doomed: %d 0x%x", doomed_, dirty); 1549 Trace(" doomed: %d 0x%x", doomed_, dirty);
1548 } 1550 }
1549 1551
1550 } // namespace disk_cache 1552 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698