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

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

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 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 (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/blockfile/entry_impl.h" 5 #include "net/disk_cache/blockfile/entry_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/hash.h" 9 #include "base/hash.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "net/base/io_buffer.h" 13 #include "net/base/io_buffer.h"
14 #include "net/base/net_errors.h" 14 #include "net/base/net_errors.h"
15 #include "net/disk_cache/blockfile/backend_impl.h" 15 #include "net/disk_cache/blockfile/backend_impl.h"
16 #include "net/disk_cache/blockfile/bitmap.h" 16 #include "net/disk_cache/blockfile/bitmap.h"
17 #include "net/disk_cache/blockfile/disk_format.h" 17 #include "net/disk_cache/blockfile/disk_format.h"
18 #include "net/disk_cache/blockfile/histogram_macros.h" 18 #include "net/disk_cache/blockfile/histogram_macros.h"
19 #include "net/disk_cache/blockfile/sparse_control.h" 19 #include "net/disk_cache/blockfile/sparse_control.h"
20 #include "net/disk_cache/cache_util.h" 20 #include "net/disk_cache/cache_util.h"
21 #include "net/disk_cache/net_log_parameters.h" 21 #include "net/disk_cache/net_log_parameters.h"
22 #include "net/log/net_log.h"
22 #include "net/log/net_log_event_type.h" 23 #include "net/log/net_log_event_type.h"
23 #include "net/log/net_log_source_type.h" 24 #include "net/log/net_log_source_type.h"
24 25
25 // Provide a BackendImpl object to macros from histogram_macros.h. 26 // Provide a BackendImpl object to macros from histogram_macros.h.
26 #define CACHE_UMA_BACKEND_IMPL_OBJ backend_ 27 #define CACHE_UMA_BACKEND_IMPL_OBJ backend_
27 28
28 using base::Time; 29 using base::Time;
29 using base::TimeDelta; 30 using base::TimeDelta;
30 using base::TimeTicks; 31 using base::TimeTicks;
31 32
(...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1561 Trace("%s 0x%p 0x%x 0x%x", msg, reinterpret_cast<void*>(this), 1562 Trace("%s 0x%p 0x%x 0x%x", msg, reinterpret_cast<void*>(this),
1562 entry_.address().value(), node_.address().value()); 1563 entry_.address().value(), node_.address().value());
1563 1564
1564 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0], 1565 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0],
1565 entry_.Data()->data_addr[1], entry_.Data()->long_key); 1566 entry_.Data()->data_addr[1], entry_.Data()->long_key);
1566 1567
1567 Trace(" doomed: %d 0x%x", doomed_, dirty); 1568 Trace(" doomed: %d 0x%x", doomed_, dirty);
1568 } 1569 }
1569 1570
1570 } // namespace disk_cache 1571 } // namespace disk_cache
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698