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

Side by Side Diff: net/disk_cache/v3/entry_impl_v3.cc

Issue 140893013: Clean up dependencies for disk_cache histogram_macros.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix fat finger 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
« no previous file with comments | « net/disk_cache/v3/backend_worker.cc ('k') | net/disk_cache/v3/eviction_v3.cc » ('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/v3/entry_impl_v3.h" 5 #include "net/disk_cache/v3/entry_impl_v3.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/bitmap.h" 13 #include "net/disk_cache/bitmap.h"
14 #include "net/disk_cache/cache_util.h" 14 #include "net/disk_cache/cache_util.h"
15 #include "net/disk_cache/net_log_parameters.h" 15 #include "net/disk_cache/net_log_parameters.h"
16 #include "net/disk_cache/v3/backend_impl_v3.h" 16 #include "net/disk_cache/v3/backend_impl_v3.h"
17 #include "net/disk_cache/v3/disk_format_v3.h" 17 #include "net/disk_cache/v3/disk_format_v3.h"
18 #include "net/disk_cache/v3/histogram_macros.h" 18 #include "net/disk_cache/v3/histogram_macros.h"
19 // #include "net/disk_cache/v3/sparse_control_v3.h" 19 // #include "net/disk_cache/v3/sparse_control_v3.h"
20 20
21 // Provide a BackendImpl object to macros from histogram_macros.h.
22 #define CACHE_UMA_BACKEND_IMPL_OBJ backend_
23
21 using base::Time; 24 using base::Time;
22 using base::TimeDelta; 25 using base::TimeDelta;
23 using base::TimeTicks; 26 using base::TimeTicks;
24 27
25 namespace { 28 namespace {
26 29
27 const int kMaxBufferSize = 1024 * 1024; // 1 MB. 30 const int kMaxBufferSize = 1024 * 1024; // 1 MB.
28 31
29 } // namespace 32 } // namespace
30 33
(...skipping 1421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1452 1455
1453 int EntryImplV3::ReadyForSparseIO(const CompletionCallback& callback) { 1456 int EntryImplV3::ReadyForSparseIO(const CompletionCallback& callback) {
1454 return net::ERR_FAILED; 1457 return net::ERR_FAILED;
1455 } 1458 }
1456 1459
1457 EntryImplV3::~EntryImplV3() { 1460 EntryImplV3::~EntryImplV3() {
1458 NOTIMPLEMENTED(); 1461 NOTIMPLEMENTED();
1459 } 1462 }
1460 1463
1461 } // namespace disk_cache 1464 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/v3/backend_worker.cc ('k') | net/disk_cache/v3/eviction_v3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698