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

Unified Diff: content/browser/in_process_webkit/indexed_db_callbacks.h

Issue 7470008: Improve IndexedDB's quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove NOTREACHED Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/in_process_webkit/indexed_db_callbacks.h
diff --git a/content/browser/in_process_webkit/indexed_db_callbacks.h b/content/browser/in_process_webkit/indexed_db_callbacks.h
index 40704a27dd1846edd513d7bbee6deaa137f27952..fc9ff81d4dc44d46a39826904fd9598db72f388a 100644
--- a/content/browser/in_process_webkit/indexed_db_callbacks.h
+++ b/content/browser/in_process_webkit/indexed_db_callbacks.h
@@ -25,9 +25,6 @@ template <class Type> struct WebIDBToMsgHelper { };
template <> struct WebIDBToMsgHelper<WebKit::WebIDBIndex> {
typedef IndexedDBMsg_CallbacksSuccessIDBIndex MsgType;
};
-template <> struct WebIDBToMsgHelper<WebKit::WebIDBTransaction> {
- typedef IndexedDBMsg_CallbacksSuccessIDBTransaction MsgType;
-};
// The code the following two classes share.
class IndexedDBCallbacksBase : public WebKit::WebIDBCallbacks {
@@ -73,6 +70,25 @@ class IndexedDBCallbacks : public IndexedDBCallbacksBase {
};
template <>
+class IndexedDBCallbacks<WebKit::WebIDBTransaction>
+ : public IndexedDBCallbacksBase {
+ public:
+ IndexedDBCallbacks(
+ IndexedDBDispatcherHost* dispatcher_host, int32 response_id,
+ const GURL& origin_url)
+ : IndexedDBCallbacksBase(dispatcher_host, response_id),
+ origin_url_(origin_url) {
+ }
+
+ virtual void onSuccess(WebKit::WebIDBTransaction* idb_object);
+ const GURL& origin_url() const { return origin_url_; }
+
+ private:
+ const GURL& origin_url_;
+ DISALLOW_IMPLICIT_CONSTRUCTORS(IndexedDBCallbacks);
+};
+
+template <>
class IndexedDBCallbacks<WebKit::WebIDBDatabase>
: public IndexedDBCallbacksBase {
public:
« no previous file with comments | « chrome/browser/extensions/extension_data_deleter.cc ('k') | content/browser/in_process_webkit/indexed_db_callbacks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698