Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef NET_DISK_CACHE_PENDING_CREATE_ENTRY_H_ | |
| 6 #define NET_DISK_CACHE_PENDING_CREATE_ENTRY_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/memory/weak_ptr.h" | |
| 11 #include "net/base/completion_callback.h" | |
| 12 | |
| 13 namespace disk_cache { | |
| 14 | |
| 15 class Backend; | |
| 16 class Entry; | |
| 17 | |
| 18 // Create an entry representing a create that is in flight, without blocking. | |
| 19 // When the entry pointer is no longer needed, its Close or Doom method should | |
| 20 // be called. If operations are performed on this entry before the real entry | |
| 21 // has been created, operations may return net::ERR_CACHE_CREATE_RACE_FAILED. | |
|
rvargas (doing something else)
2013/01/23 22:04:09
If we return an "entry" synchronously, the caller
| |
| 22 int PendingCreateEntry(Backend* backend, const std::string& key, Entry** entry); | |
| 23 | |
| 24 } // namespace disk_cache | |
| 25 | |
| 26 #endif // NET_DISK_CACHE_PENDING_CREATE_ENTRY_H_ | |
| OLD | NEW |