summaryrefslogtreecommitdiffstats
path: root/content/browser/indexed_db/leveldb/leveldb_slice.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/indexed_db/leveldb/leveldb_slice.h')
-rw-r--r--content/browser/indexed_db/leveldb/leveldb_slice.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/content/browser/indexed_db/leveldb/leveldb_slice.h b/content/browser/indexed_db/leveldb/leveldb_slice.h
deleted file mode 100644
index 7962b69..0000000
--- a/content/browser/indexed_db/leveldb/leveldb_slice.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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 CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_SLICE_H_
-#define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_SLICE_H_
-
-#include <vector>
-
-#include "base/logging.h"
-
-namespace content {
-
-class LevelDBSlice {
- public:
- LevelDBSlice(const char* begin, const char* end) : begin_(begin), end_(end) {
- DCHECK_GE(end_, begin_);
- }
-
- explicit LevelDBSlice(const std::vector<char>& v)
- : begin_(&*v.begin()), end_(&*v.rbegin() + 1) {
- DCHECK_GT(v.size(), static_cast<size_t>(0));
- DCHECK_GE(end_, begin_);
- }
-
- ~LevelDBSlice() {}
-
- const char* begin() const { return begin_; }
- const char* end() const { return end_; }
-
- private:
- const char* begin_;
- const char* end_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_SLICE_H_