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

Side by Side Diff: net/disk_cache/in_flight_backend_io.h

Issue 8065015: Disk Cache: Improve handling of dirty entries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ 5 #ifndef NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_
6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ 6 #define NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
11 11
12 #include "base/message_loop_proxy.h" 12 #include "base/message_loop_proxy.h"
13 #include "base/time.h"
13 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
14 #include "net/base/io_buffer.h" 15 #include "net/base/io_buffer.h"
15 #include "net/disk_cache/entry_impl.h"
16 #include "net/disk_cache/in_flight_io.h" 16 #include "net/disk_cache/in_flight_io.h"
17 17
18 namespace disk_cache { 18 namespace disk_cache {
19 19
20 class BackendImpl; 20 class BackendImpl;
21 class Entry;
22 class EntryImpl;
21 23
22 // This class represents a single asynchronous disk cache IO operation while it 24 // This class represents a single asynchronous disk cache IO operation while it
23 // is being bounced between threads. 25 // is being bounced between threads.
24 class BackendIO : public BackgroundIO { 26 class BackendIO : public BackgroundIO {
25 public: 27 public:
26 BackendIO(InFlightIO* controller, BackendImpl* backend, 28 BackendIO(InFlightIO* controller, BackendImpl* backend,
27 net::CompletionCallback* callback); 29 net::CompletionCallback* callback);
28 30
29 // Runs the actual operation on the background thread. 31 // Runs the actual operation on the background thread.
30 void ExecuteOperation(); 32 void ExecuteOperation();
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 201
200 BackendImpl* backend_; 202 BackendImpl* backend_;
201 scoped_refptr<base::MessageLoopProxy> background_thread_; 203 scoped_refptr<base::MessageLoopProxy> background_thread_;
202 204
203 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO); 205 DISALLOW_COPY_AND_ASSIGN(InFlightBackendIO);
204 }; 206 };
205 207
206 } // namespace disk_cache 208 } // namespace disk_cache
207 209
208 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_ 210 #endif // NET_DISK_CACHE_IN_FLIGHT_BACKEND_IO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698