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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 213263004: Made IndexedDB's comparators public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index 8e5f7ac0de74b28a9c8233e6f638297da3c46907..e7aa21e16c01f1e522071aeb12ef9b047950f9a1 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -12,6 +12,7 @@
#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+#include "base/strings/string_piece.h"
#include "base/timer/timer.h"
#include "content/browser/indexed_db/indexed_db.h"
#include "content/browser/indexed_db/indexed_db_metadata.h"
@@ -45,6 +46,13 @@ class CONTENT_EXPORT IndexedDBBackingStore
public:
class CONTENT_EXPORT Transaction;
+ class Comparator : public LevelDBComparator {
+ public:
+ virtual int Compare(const base::StringPiece& a,
+ const base::StringPiece& b) const OVERRIDE;
+ virtual const char* Name() const OVERRIDE;
+ };
+
const GURL& origin_url() const { return origin_url_; }
base::OneShotTimer<IndexedDBBackingStore>* close_timer() {
return &close_timer_;
« no previous file with comments | « no previous file | content/browser/indexed_db/indexed_db_backing_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698