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

Side by Side Diff: Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp

Issue 17060008: Add dataLoss property to IDB's upgradeneeded event (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add blink API stub for compatibility with and without chromium changes Created 7 years, 6 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 void WebIDBCallbacksImpl::onSuccess(const WebIDBKey& key, const WebIDBKey& prima ryKey, const WebData& value) 107 void WebIDBCallbacksImpl::onSuccess(const WebIDBKey& key, const WebIDBKey& prima ryKey, const WebData& value)
108 { 108 {
109 m_callbacks->onSuccess(key, primaryKey, value); 109 m_callbacks->onSuccess(key, primaryKey, value);
110 } 110 }
111 111
112 void WebIDBCallbacksImpl::onBlocked(long long oldVersion) 112 void WebIDBCallbacksImpl::onBlocked(long long oldVersion)
113 { 113 {
114 m_callbacks->onBlocked(oldVersion); 114 m_callbacks->onBlocked(oldVersion);
115 } 115 }
116 116
117 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase* database, const WebIDBMetadata& metadata) 117 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase* database, const WebIDBMetadata& metadata, DataLoss dataLoss)
118 { 118 {
119 m_databaseProxy = IDBDatabaseBackendProxy::create(adoptPtr(database)); 119 m_databaseProxy = IDBDatabaseBackendProxy::create(adoptPtr(database));
120 m_callbacks->onUpgradeNeeded(oldVersion, m_databaseProxy, metadata); 120 m_callbacks->onUpgradeNeeded(oldVersion, m_databaseProxy, metadata, dataLoss );
121 } 121 }
122 122
123 } // namespace WebKit 123 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebIDBCallbacksImpl.h ('k') | Source/WebKit/chromium/tests/IDBRequestTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698