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

Side by Side Diff: chrome/browser/in_process_webkit/indexed_db_callbacks.h

Issue 6513002: indexeddb: make setVersion fire blocked event if other connections are open (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 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
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_
6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // The code the following two classes share. 39 // The code the following two classes share.
40 class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks { 40 class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks {
41 public: 41 public:
42 IndexedDBCallbacksBase(IndexedDBDispatcherHost* dispatcher_host, 42 IndexedDBCallbacksBase(IndexedDBDispatcherHost* dispatcher_host,
43 int32 response_id); 43 int32 response_id);
44 44
45 virtual ~IndexedDBCallbacksBase(); 45 virtual ~IndexedDBCallbacksBase();
46 46
47 virtual void onError(const WebKit::WebIDBDatabaseError& error); 47 virtual void onError(const WebKit::WebIDBDatabaseError& error);
48 virtual void onBlocked();
48 49
49 protected: 50 protected:
50 IndexedDBDispatcherHost* dispatcher_host() const { 51 IndexedDBDispatcherHost* dispatcher_host() const {
51 return dispatcher_host_.get(); 52 return dispatcher_host_.get();
52 } 53 }
53 int32 response_id() const { return response_id_; } 54 int32 response_id() const { return response_id_; }
54 55
55 private: 56 private:
56 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; 57 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
57 int32 response_id_; 58 int32 response_id_;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 virtual void onComplete(); 144 virtual void onComplete();
144 145
145 virtual void onTimeout(); 146 virtual void onTimeout();
146 147
147 private: 148 private:
148 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_; 149 scoped_refptr<IndexedDBDispatcherHost> dispatcher_host_;
149 int transaction_id_; 150 int transaction_id_;
150 }; 151 };
151 152
152 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_ 153 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_INDEXED_DB_CALLBACKS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698