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

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

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 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
« no previous file with comments | « net/disk_cache/blockfile/entry_impl.h ('k') | net/disk_cache/blockfile/entry_impl_v3.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/blockfile/entry_impl.h" 5 #include "net/disk_cache/blockfile/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"
(...skipping 28 matching lines...) Expand all
39 SyncCallback(disk_cache::EntryImpl* entry, net::IOBuffer* buffer, 39 SyncCallback(disk_cache::EntryImpl* entry, net::IOBuffer* buffer,
40 const net::CompletionCallback& callback, 40 const net::CompletionCallback& callback,
41 net::NetLog::EventType end_event_type) 41 net::NetLog::EventType end_event_type)
42 : entry_(entry), callback_(callback), buf_(buffer), 42 : entry_(entry), callback_(callback), buf_(buffer),
43 start_(TimeTicks::Now()), end_event_type_(end_event_type) { 43 start_(TimeTicks::Now()), end_event_type_(end_event_type) {
44 entry->AddRef(); 44 entry->AddRef();
45 entry->IncrementIoCount(); 45 entry->IncrementIoCount();
46 } 46 }
47 virtual ~SyncCallback() {} 47 virtual ~SyncCallback() {}
48 48
49 virtual void OnFileIOComplete(int bytes_copied) OVERRIDE; 49 virtual void OnFileIOComplete(int bytes_copied) override;
50 void Discard(); 50 void Discard();
51 51
52 private: 52 private:
53 disk_cache::EntryImpl* entry_; 53 disk_cache::EntryImpl* entry_;
54 net::CompletionCallback callback_; 54 net::CompletionCallback callback_;
55 scoped_refptr<net::IOBuffer> buf_; 55 scoped_refptr<net::IOBuffer> buf_;
56 TimeTicks start_; 56 TimeTicks start_;
57 const net::NetLog::EventType end_event_type_; 57 const net::NetLog::EventType end_event_type_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(SyncCallback); 59 DISALLOW_COPY_AND_ASSIGN(SyncCallback);
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 Trace("%s 0x%p 0x%x 0x%x", msg, reinterpret_cast<void*>(this), 1545 Trace("%s 0x%p 0x%x 0x%x", msg, reinterpret_cast<void*>(this),
1546 entry_.address().value(), node_.address().value()); 1546 entry_.address().value(), node_.address().value());
1547 1547
1548 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0], 1548 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0],
1549 entry_.Data()->data_addr[1], entry_.Data()->long_key); 1549 entry_.Data()->data_addr[1], entry_.Data()->long_key);
1550 1550
1551 Trace(" doomed: %d 0x%x", doomed_, dirty); 1551 Trace(" doomed: %d 0x%x", doomed_, dirty);
1552 } 1552 }
1553 1553
1554 } // namespace disk_cache 1554 } // namespace disk_cache
OLDNEW
« no previous file with comments | « net/disk_cache/blockfile/entry_impl.h ('k') | net/disk_cache/blockfile/entry_impl_v3.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698