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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp

Issue 1706413002: Indexed DB: Rename "int version" to "version" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 OwnPtr<ObjectStore> objectStore = ObjectStore::create() 335 OwnPtr<ObjectStore> objectStore = ObjectStore::create()
336 .setName(objectStoreMetadata.name) 336 .setName(objectStoreMetadata.name)
337 .setKeyPath(keyPathFromIDBKeyPath(objectStoreMetadata.keyPath)) 337 .setKeyPath(keyPathFromIDBKeyPath(objectStoreMetadata.keyPath))
338 .setAutoIncrement(objectStoreMetadata.autoIncrement) 338 .setAutoIncrement(objectStoreMetadata.autoIncrement)
339 .setIndexes(indexes.release()).build(); 339 .setIndexes(indexes.release()).build();
340 objectStores->addItem(objectStore.release()); 340 objectStores->addItem(objectStore.release());
341 } 341 }
342 OwnPtr<DatabaseWithObjectStores> result = DatabaseWithObjectStores::crea te() 342 OwnPtr<DatabaseWithObjectStores> result = DatabaseWithObjectStores::crea te()
343 .setName(databaseMetadata.name) 343 .setName(databaseMetadata.name)
344 .setIntVersion(databaseMetadata.intVersion) 344 .setVersion(databaseMetadata.version)
345 .setObjectStores(objectStores.release()).build(); 345 .setObjectStores(objectStores.release()).build();
346 346
347 m_requestCallback->sendSuccess(result.release()); 347 m_requestCallback->sendSuccess(result.release());
348 } 348 }
349 349
350 RequestCallback* requestCallback() override { return m_requestCallback.get() ; } 350 RequestCallback* requestCallback() override { return m_requestCallback.get() ; }
351 private: 351 private:
352 DatabaseLoader(ScriptState* scriptState, PassRefPtr<RequestDatabaseCallback> requestCallback) 352 DatabaseLoader(ScriptState* scriptState, PassRefPtr<RequestDatabaseCallback> requestCallback)
353 : ExecutableWithDatabase(scriptState) 353 : ExecutableWithDatabase(scriptState)
354 , m_requestCallback(requestCallback) { } 354 , m_requestCallback(requestCallback) { }
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName ); 817 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName );
818 } 818 }
819 819
820 DEFINE_TRACE(InspectorIndexedDBAgent) 820 DEFINE_TRACE(InspectorIndexedDBAgent)
821 { 821 {
822 visitor->trace(m_inspectedFrames); 822 visitor->trace(m_inspectedFrames);
823 InspectorBaseAgent::trace(visitor); 823 InspectorBaseAgent::trace(visitor);
824 } 824 }
825 825
826 } // namespace blink 826 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698