summaryrefslogtreecommitdiff
path: root/chromium/content/browser/indexed_db/leveldb/leveldb_comparator.h
blob: 2e8e3299916ac5cf1397e7351cadb89d04f16598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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_COMPARATOR_H_
#define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_COMPARATOR_H_

#include "base/strings/string_piece.h"

namespace content {

class LevelDBComparator {
 public:
  virtual ~LevelDBComparator() {}

  virtual int Compare(const base::StringPiece& a,
                      const base::StringPiece& b) const = 0;
  virtual const char* Name() const = 0;
};

}  // namespace content

#endif  // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_COMPARATOR_H_