| Index: net/disk_cache/pending_create_entry.h
|
| diff --git a/net/disk_cache/pending_create_entry.h b/net/disk_cache/pending_create_entry.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..79ee6c9139a0f54cdf137950c836e59dc2516ea3
|
| --- /dev/null
|
| +++ b/net/disk_cache/pending_create_entry.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef NET_DISK_CACHE_PENDING_CREATE_ENTRY_H_
|
| +#define NET_DISK_CACHE_PENDING_CREATE_ENTRY_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/memory/weak_ptr.h"
|
| +#include "net/base/completion_callback.h"
|
| +
|
| +namespace disk_cache {
|
| +
|
| +class Backend;
|
| +class Entry;
|
| +
|
| +// Create an entry representing a create that is in flight, without blocking.
|
| +// When the entry pointer is no longer needed, its Close or Doom method should
|
| +// be called. If operations are performed on this entry before the real entry
|
| +// has been created, operations may return net::ERR_CACHE_CREATE_RACE_FAILED.
|
| +int PendingCreateEntry(Backend* backend, const std::string& key, Entry** entry);
|
| +
|
| +} // namespace disk_cache
|
| +
|
| +#endif // NET_DISK_CACHE_PENDING_CREATE_ENTRY_H_
|
|
|