OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBDatabaseCallbac
ks.h" |
11 | 10 |
12 class IndexedDBDispatcherHost; | 11 class IndexedDBDispatcherHost; |
13 | 12 |
14 class IndexedDBDatabaseCallbacks | 13 class IndexedDBDatabaseCallbacks |
15 : public WebKit::WebIDBDatabaseCallbacks { | 14 : public WebKit::WebIDBDatabaseCallbacks { |
16 public: | 15 public: |
17 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, | 16 IndexedDBDatabaseCallbacks(IndexedDBDispatcherHost* dispatcher_host, |
18 int thread_id, | 17 int thread_id, |
19 int database_id); | 18 int database_id); |
20 | 19 |
21 virtual ~IndexedDBDatabaseCallbacks(); | 20 virtual ~IndexedDBDatabaseCallbacks(); |
22 | 21 |
23 virtual void onVersionChange(const WebKit::WebString& requested_version); | 22 virtual void onVersionChange(const WebKit::WebString& requested_version); |
24 | 23 |
25 private: | 24 private: |
26 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; | 25 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; |
27 int thread_id_; | 26 int thread_id_; |
28 int database_id_; | 27 int database_id_; |
29 }; | 28 }; |
30 | 29 |
31 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ | 30 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_DATABASE_CALLBACKS_H_ |
OLD | NEW |