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

Side by Side Diff: content/common/indexed_db/proxy_webidbobjectstore_impl.h

Issue 10041014: IndexedDB: API rename to allow return type of keyPath accessors to change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBOBJECTSTORE_IMPL_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBOBJECTSTORE_IMPL_H_
6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBOBJECTSTORE_IMPL_H_ 6 #define CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBOBJECTSTORE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h" 11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBCallbacks.h"
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h"
12 13
13 namespace WebKit { 14 namespace WebKit {
14 class WebIDBCallbacks; 15 class WebIDBCallbacks;
15 class WebIDBIndex; 16 class WebIDBIndex;
16 class WebIDBKey; 17 class WebIDBKey;
17 class WebIDBKeyRange; 18 class WebIDBKeyRange;
18 class WebString; 19 class WebString;
19 } 20 }
20 21
21 class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore { 22 class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
22 public: 23 public:
23 explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id); 24 explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id);
24 virtual ~RendererWebIDBObjectStoreImpl(); 25 virtual ~RendererWebIDBObjectStoreImpl();
25 26
26 // WebKit::WebIDBObjectStore 27 // WebKit::WebIDBObjectStore
27 virtual WebKit::WebString name() const; 28 virtual WebKit::WebString name() const;
28 virtual WebKit::WebString keyPath() const; 29 virtual WebKit::WebString keyPathString() const OVERRIDE;
29 virtual WebKit::WebDOMStringList indexNames() const; 30 virtual WebKit::WebDOMStringList indexNames() const;
30 31
31 virtual void get(const WebKit::WebIDBKey& key, 32 virtual void get(const WebKit::WebIDBKey& key,
32 WebKit::WebIDBCallbacks* callbacks, 33 WebKit::WebIDBCallbacks* callbacks,
33 const WebKit::WebIDBTransaction& transaction, 34 const WebKit::WebIDBTransaction& transaction,
34 WebKit::WebExceptionCode& ec); 35 WebKit::WebExceptionCode& ec);
35 virtual void put(const WebKit::WebSerializedScriptValue& value, 36 virtual void put(const WebKit::WebSerializedScriptValue& value,
36 const WebKit::WebIDBKey& key, 37 const WebKit::WebIDBKey& key,
37 PutMode put_mode, 38 PutMode put_mode,
38 WebKit::WebIDBCallbacks* callbacks, 39 WebKit::WebIDBCallbacks* callbacks,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void count(const WebKit::WebIDBKeyRange& idb_key_range, 74 virtual void count(const WebKit::WebIDBKeyRange& idb_key_range,
74 WebKit::WebIDBCallbacks* callbacks, 75 WebKit::WebIDBCallbacks* callbacks,
75 const WebKit::WebIDBTransaction& transaction, 76 const WebKit::WebIDBTransaction& transaction,
76 WebKit::WebExceptionCode& ec); 77 WebKit::WebExceptionCode& ec);
77 78
78 private: 79 private:
79 int32 idb_object_store_id_; 80 int32 idb_object_store_id_;
80 }; 81 };
81 82
82 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBOBJECTSTORE_IMPL_H_ 83 #endif // CONTENT_COMMON_INDEXED_DB_PROXY_WEBIDBOBJECTSTORE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698