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

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

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 1 month 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/histogram.h" 7 #include "base/histogram.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
11 #include "net/disk_cache/backend_impl.h" 11 #include "net/disk_cache/backend_impl.h"
12 #include "net/disk_cache/cache_util.h" 12 #include "net/disk_cache/cache_util.h"
13 13
14 using base::Time;
15 using base::TimeDelta;
16
14 namespace { 17 namespace {
15 18
16 // This is a simple Task to execute the callback (from the message loop instead 19 // This is a simple Task to execute the callback (from the message loop instead
17 // of the APC). 20 // of the APC).
18 class InvokeCallback : public Task { 21 class InvokeCallback : public Task {
19 public: 22 public:
20 InvokeCallback(net::CompletionCallback* callback, int argument) 23 InvokeCallback(net::CompletionCallback* callback, int argument)
21 : callback_(callback), argument_(argument) {} 24 : callback_(callback), argument_(argument) {}
22 25
23 virtual void Run() { 26 virtual void Run() {
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 entry_.address().value(), node_.address().value()); 771 entry_.address().value(), node_.address().value());
769 772
770 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0], 773 Trace(" data: 0x%x 0x%x 0x%x", entry_.Data()->data_addr[0],
771 entry_.Data()->data_addr[1], entry_.Data()->long_key); 774 entry_.Data()->data_addr[1], entry_.Data()->long_key);
772 775
773 Trace(" doomed: %d 0x%p 0x%x", doomed_, pointer, dirty); 776 Trace(" doomed: %d 0x%p 0x%x", doomed_, pointer, dirty);
774 } 777 }
775 778
776 } // namespace disk_cache 779 } // namespace disk_cache
777 780
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698