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

Side by Side Diff: content/renderer/indexed_db/renderer_webidbobjectstore_impl.h

Issue 9368053: Move indexed db files from content/renderer to content/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix checkdeps by adding method to ChildThread Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
6 #define CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
7 #pragma once
8
9 #include "base/basictypes.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
12
13 namespace WebKit {
14 class WebIDBCallbacks;
15 class WebIDBIndex;
16 class WebIDBKey;
17 class WebIDBKeyRange;
18 class WebString;
19 }
20
21 class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
22 public:
23 explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id);
24 virtual ~RendererWebIDBObjectStoreImpl();
25
26 // WebKit::WebIDBObjectStore
27 virtual WebKit::WebString name() const;
28 virtual WebKit::WebString keyPath() const;
29 virtual WebKit::WebDOMStringList indexNames() const;
30
31 virtual void get(const WebKit::WebIDBKey& key,
32 WebKit::WebIDBCallbacks* callbacks,
33 const WebKit::WebIDBTransaction& transaction,
34 WebKit::WebExceptionCode& ec);
35 virtual void put(const WebKit::WebSerializedScriptValue& value,
36 const WebKit::WebIDBKey& key,
37 PutMode put_mode,
38 WebKit::WebIDBCallbacks* callbacks,
39 const WebKit::WebIDBTransaction& transaction,
40 WebKit::WebExceptionCode& ec);
41 virtual void deleteFunction(const WebKit::WebIDBKey& key,
42 WebKit::WebIDBCallbacks* callbacks,
43 const WebKit::WebIDBTransaction& transaction,
44 WebKit::WebExceptionCode& ec);
45 virtual void clear(WebKit::WebIDBCallbacks* callbacks,
46 const WebKit::WebIDBTransaction& transaction,
47 WebKit::WebExceptionCode& ec);
48
49 virtual WebKit::WebIDBIndex* createIndex(
50 const WebKit::WebString& name,
51 const WebKit::WebString& key_path,
52 bool unique,
53 bool multi_entry,
54 const WebKit::WebIDBTransaction& transaction,
55 WebKit::WebExceptionCode& ec);
56 // Transfers ownership of the WebIDBIndex to the caller.
57 virtual WebKit::WebIDBIndex* index(const WebKit::WebString& name,
58 WebKit::WebExceptionCode& ec);
59 virtual void deleteIndex(const WebKit::WebString& name,
60 const WebKit::WebIDBTransaction& transaction,
61 WebKit::WebExceptionCode& ec);
62
63 virtual void openCursor(const WebKit::WebIDBKeyRange& idb_key_range,
64 unsigned short direction,
65 WebKit::WebIDBCallbacks* callbacks,
66 const WebKit::WebIDBTransaction& transaction,
67 WebKit::WebExceptionCode& ec);
68
69 virtual void count(const WebKit::WebIDBKeyRange& idb_key_range,
70 WebKit::WebIDBCallbacks* callbacks,
71 const WebKit::WebIDBTransaction& transaction,
72 WebKit::WebExceptionCode& ec);
73
74 private:
75 int32 idb_object_store_id_;
76 };
77
78 #endif // CONTENT_RENDERER_INDEXED_DB_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698