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

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

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 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 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 CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ 5 #ifndef CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
6 #define CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ 6 #define CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h" 10 #include "third_party/WebKit/WebKit/chromium/public/WebIDBCallbacks.h"
11 #include "third_party/WebKit/WebKit/chromium/public/WebIDBObjectStore.h" 11 #include "third_party/WebKit/WebKit/chromium/public/WebIDBObjectStore.h"
12 12
13 namespace WebKit { 13 namespace WebKit {
14 class WebFrame; 14 class WebFrame;
15 class WebIDBCallbacks; 15 class WebIDBCallbacks;
16 class WebIDBIndex; 16 class WebIDBIndex;
17 class WebIDBKey; 17 class WebIDBKey;
18 class WebIDBKeyRange; 18 class WebIDBKeyRange;
19 class WebString; 19 class WebString;
20 } 20 }
21 21
22 class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore { 22 class RendererWebIDBObjectStoreImpl : public WebKit::WebIDBObjectStore {
23 public: 23 public:
24 explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id); 24 explicit RendererWebIDBObjectStoreImpl(int32 idb_object_store_id);
25 ~RendererWebIDBObjectStoreImpl(); 25 ~RendererWebIDBObjectStoreImpl();
26 26
27 // WebKit::WebIDBObjectStore 27 // WebKit::WebIDBObjectStore
28 WebKit::WebString name() const; 28 virtual WebKit::WebString name() const;
29 WebKit::WebString keyPath() const; 29 virtual WebKit::WebString keyPath() const;
30 WebKit::WebDOMStringList indexNames() const; 30 virtual WebKit::WebDOMStringList indexNames() const;
31 31
32 void get(const WebKit::WebIDBKey& key, 32 virtual void get(const WebKit::WebIDBKey& key,
33 WebKit::WebIDBCallbacks* callbacks, 33 WebKit::WebIDBCallbacks* callbacks,
34 const WebKit::WebIDBTransaction& transaction, 34 const WebKit::WebIDBTransaction& transaction,
35 WebKit::WebExceptionCode& ec); 35 WebKit::WebExceptionCode& ec);
36 void put(const WebKit::WebSerializedScriptValue& value, 36 virtual void put(const WebKit::WebSerializedScriptValue& value,
37 const WebKit::WebIDBKey& key, 37 const WebKit::WebIDBKey& key,
38 bool add_only, 38 bool add_only,
39 WebKit::WebIDBCallbacks* callbacks, 39 WebKit::WebIDBCallbacks* callbacks,
40 const WebKit::WebIDBTransaction& transaction, 40 const WebKit::WebIDBTransaction& transaction,
41 WebKit::WebExceptionCode& ec); 41 WebKit::WebExceptionCode& ec);
42 void deleteFunction(const WebKit::WebIDBKey& key, 42 virtual void deleteFunction(const WebKit::WebIDBKey& key,
43 WebKit::WebIDBCallbacks* callbacks, 43 WebKit::WebIDBCallbacks* callbacks,
44 const WebKit::WebIDBTransaction& transaction, 44 const WebKit::WebIDBTransaction& transaction,
45 WebKit::WebExceptionCode& ec); 45 WebKit::WebExceptionCode& ec);
46 46
47 WebKit::WebIDBIndex* createIndex( 47 virtual WebKit::WebIDBIndex* createIndex(
48 const WebKit::WebString& name, 48 const WebKit::WebString& name,
49 const WebKit::WebString& key_path, 49 const WebKit::WebString& key_path,
50 bool unique, 50 bool unique,
51 const WebKit::WebIDBTransaction& transaction, 51 const WebKit::WebIDBTransaction& transaction,
52 WebKit::WebExceptionCode& ec); 52 WebKit::WebExceptionCode& ec);
53 // Transfers ownership of the WebIDBIndex to the caller. 53 // Transfers ownership of the WebIDBIndex to the caller.
54 WebKit::WebIDBIndex* index(const WebKit::WebString& name, 54 virtual WebKit::WebIDBIndex* index(const WebKit::WebString& name,
55 WebKit::WebExceptionCode& ec); 55 WebKit::WebExceptionCode& ec);
56 void deleteIndex(const WebKit::WebString& name, 56 virtual void deleteIndex(const WebKit::WebString& name,
57 const WebKit::WebIDBTransaction& transaction, 57 const WebKit::WebIDBTransaction& transaction,
58 WebKit::WebExceptionCode& ec); 58 WebKit::WebExceptionCode& ec);
59 59
60 void openCursor(const WebKit::WebIDBKeyRange& idb_key_range, 60 virtual void openCursor(const WebKit::WebIDBKeyRange& idb_key_range,
61 unsigned short direction, 61 unsigned short direction,
62 WebKit::WebIDBCallbacks* callbacks, 62 WebKit::WebIDBCallbacks* callbacks,
63 const WebKit::WebIDBTransaction& transaction, 63 const WebKit::WebIDBTransaction& transaction,
64 WebKit::WebExceptionCode& ec); 64 WebKit::WebExceptionCode& ec);
65 private: 65 private:
66 int32 idb_object_store_id_; 66 int32 idb_object_store_id_;
67 }; 67 };
68 68
69 #endif // CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_ 69 #endif // CHROME_RENDERER_RENDERER_WEBIDBOBJECTSTORE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/renderer/renderer_histogram_snapshots.h ('k') | chrome/renderer/speech_input_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698