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

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

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 return; 110 return;
111 } 111 }
112 112
113 IDBRequest* idbRequest = static_cast<IDBRequest*>(event->target()); 113 IDBRequest* idbRequest = static_cast<IDBRequest*>(event->target());
114 RefPtrWillBeRawPtr<IDBAny> requestResult = idbRequest->resultAsAny(); 114 RefPtrWillBeRawPtr<IDBAny> requestResult = idbRequest->resultAsAny();
115 if (requestResult->type() != IDBAny::DOMStringListType) { 115 if (requestResult->type() != IDBAny::DOMStringListType) {
116 m_requestCallback->sendFailure("Unexpected result type."); 116 m_requestCallback->sendFailure("Unexpected result type.");
117 return; 117 return;
118 } 118 }
119 119
120 RefPtr<DOMStringList> databaseNamesList = requestResult->domStringList() ; 120 RefPtrWillBeRawPtr<DOMStringList> databaseNamesList = requestResult->dom StringList();
121 RefPtr<TypeBuilder::Array<String> > databaseNames = TypeBuilder::Array<S tring>::create(); 121 RefPtr<TypeBuilder::Array<String> > databaseNames = TypeBuilder::Array<S tring>::create();
122 for (size_t i = 0; i < databaseNamesList->length(); ++i) 122 for (size_t i = 0; i < databaseNamesList->length(); ++i)
123 databaseNames->addItem(databaseNamesList->item(i)); 123 databaseNames->addItem(databaseNamesList->item(i));
124 m_requestCallback->sendSuccess(databaseNames.release()); 124 m_requestCallback->sendSuccess(databaseNames.release());
125 } 125 }
126 126
127 private: 127 private:
128 GetDatabaseNamesCallback(PassRefPtr<RequestDatabaseNamesCallback> requestCal lback, const String& securityOrigin) 128 GetDatabaseNamesCallback(PassRefPtr<RequestDatabaseNamesCallback> requestCal lback, const String& securityOrigin)
129 : EventListener(EventListener::CPPEventListenerType) 129 : EventListener(EventListener::CPPEventListenerType)
130 , m_requestCallback(requestCallback) 130 , m_requestCallback(requestCallback)
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 if (!idbFactory) 771 if (!idbFactory)
772 return; 772 return;
773 773
774 NewScriptState* scriptState = NewScriptState::forMainWorld(frame); 774 NewScriptState* scriptState = NewScriptState::forMainWorld(frame);
775 NewScriptState::Scope scope(scriptState); 775 NewScriptState::Scope scope(scriptState);
776 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(scriptS tate, objectStoreName, requestCallback); 776 RefPtr<ClearObjectStore> clearObjectStore = ClearObjectStore::create(scriptS tate, objectStoreName, requestCallback);
777 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName ); 777 clearObjectStore->start(idbFactory, document->securityOrigin(), databaseName );
778 } 778 }
779 779
780 } // namespace WebCore 780 } // namespace WebCore
OLDNEW
« Source/core/html/LabelableElement.h ('K') | « Source/modules/indexeddb/IDBRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698