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

Unified Diff: net/disk_cache/flash/log_store_entry.h

Issue 182093002: Remove the flash specific disk cache backend. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/flash/log_store.cc ('k') | net/disk_cache/flash/log_store_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/log_store_entry.h
diff --git a/net/disk_cache/flash/log_store_entry.h b/net/disk_cache/flash/log_store_entry.h
deleted file mode 100644
index 579194913af4503dc26c2bf8b67f3f4392e61d34..0000000000000000000000000000000000000000
--- a/net/disk_cache/flash/log_store_entry.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 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_FLASH_LOG_STORE_ENTRY_H_
-#define NET_DISK_CACHE_FLASH_LOG_STORE_ENTRY_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/gtest_prod_util.h"
-#include "net/base/net_export.h"
-#include "net/disk_cache/flash/format.h"
-
-namespace net {
-class IOBuffer;
-};
-
-namespace disk_cache {
-
-class LogStore;
-
-class NET_EXPORT_PRIVATE LogStoreEntry {
- public:
- explicit LogStoreEntry(LogStore* store);
- LogStoreEntry(LogStore* store, int32 id);
- ~LogStoreEntry();
-
- bool Init();
- bool Close();
-
- int32 id() const;
- bool IsNew() const;
- int32 GetDataSize(int index) const;
-
- int ReadData(int index, int offset, net::IOBuffer* buf, int buf_len);
- int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len);
- void Delete();
-
- private:
- struct Stream {
- Stream();
- ~Stream();
- int offset;
- int size;
- std::vector<char> write_buffer;
- };
-
- bool InvalidStream(int stream_index) const;
- int32 Size() const;
- bool Save();
-
- LogStore* store_;
- int32 id_;
- Stream streams_[kFlashLogStoreEntryNumStreams];
- bool init_;
- bool closed_;
- bool deleted_;
-
- DISALLOW_COPY_AND_ASSIGN(LogStoreEntry);
-};
-
-} // namespace disk_cache
-
-#endif // NET_DISK_CACHE_FLASH_LOG_STORE_ENTRY_H_
« no previous file with comments | « net/disk_cache/flash/log_store.cc ('k') | net/disk_cache/flash/log_store_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698