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

Side by Side Diff: chrome/renderer/renderer_webidbobjectstore_impl.h

Issue 6713024: Move the renderer_web* files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
6 #define CHROME_RENDERER_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 WebFrame;
15 class WebIDBCallbacks;
16 class WebIDBIndex;
17 class WebIDBKey;
18 class WebIDBKeyRange;
19 class WebString;
20 }
21
22 class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
23 public:
24 explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id);
25 ~RendererWebIDBObjectStoreImpl();
26
27 // WebKit::WebIDBObjectStore
28 virtual WebKit::WebString name() const;
29 virtual WebKit::WebString keyPath() const;
30 virtual WebKit::WebDOMStringList indexNames() const;
31
32 virtual void get(const WebKit::WebIDBKey& key,
33 WebKit::WebIDBCallbacks* callbacks,
34 const WebKit::WebIDBTransaction& transaction,
35 WebKit::WebExceptionCode& ec);
36 virtual void put(const WebKit::WebSerializedScriptValue& value,
37 const WebKit::WebIDBKey& key,
38 PutMode put_mode,
39 WebKit::WebIDBCallbacks* callbacks,
40 const WebKit::WebIDBTransaction& transaction,
41 WebKit::WebExceptionCode& ec);
42 virtual void deleteFunction(const WebKit::WebIDBKey& key,
43 WebKit::WebIDBCallbacks* callbacks,
44 const WebKit::WebIDBTransaction& transaction,
45 WebKit::WebExceptionCode& ec);
46 virtual void clear(WebKit::WebIDBCallbacks* callbacks,
47 const WebKit::WebIDBTransaction& transaction,
48 WebKit::WebExceptionCode& ec);
49
50 virtual WebKit::WebIDBIndex* createIndex(
51 const WebKit::WebString& name,
52 const WebKit::WebString& key_path,
53 bool unique,
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 private:
69 int32 idb_object_store_id_;
70 };
71
72 #endif // CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_webidbindex_impl.cc ('k') | chrome/renderer/renderer_webidbobjectstore_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698