OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 * 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 * | 10 * |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 m_request->getExecutionContext(), this); | 82 m_request->getExecutionContext(), this); |
83 m_request->onError(DOMException::create(error.code(), error.message())); | 83 m_request->onError(DOMException::create(error.code(), error.message())); |
84 } | 84 } |
85 | 85 |
86 void WebIDBCallbacksImpl::onSuccess(const WebVector<WebString>& webStringList) { | 86 void WebIDBCallbacksImpl::onSuccess(const WebVector<WebString>& webStringList) { |
87 if (!m_request) | 87 if (!m_request) |
88 return; | 88 return; |
89 | 89 |
90 Vector<String> stringList; | 90 Vector<String> stringList; |
91 for (size_t i = 0; i < webStringList.size(); ++i) | 91 for (size_t i = 0; i < webStringList.size(); ++i) |
92 stringList.append(webStringList[i]); | 92 stringList.push_back(webStringList[i]); |
93 InspectorInstrumentation::AsyncTask asyncTask( | 93 InspectorInstrumentation::AsyncTask asyncTask( |
94 m_request->getExecutionContext(), this); | 94 m_request->getExecutionContext(), this); |
95 m_request->onSuccess(stringList); | 95 m_request->onSuccess(stringList); |
96 } | 96 } |
97 | 97 |
98 void WebIDBCallbacksImpl::onSuccess(WebIDBCursor* cursor, | 98 void WebIDBCallbacksImpl::onSuccess(WebIDBCursor* cursor, |
99 const WebIDBKey& key, | 99 const WebIDBKey& key, |
100 const WebIDBKey& primaryKey, | 100 const WebIDBKey& primaryKey, |
101 const WebIDBValue& value) { | 101 const WebIDBValue& value) { |
102 if (!m_request) | 102 if (!m_request) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } else { | 203 } else { |
204 db->close(); | 204 db->close(); |
205 } | 205 } |
206 } | 206 } |
207 | 207 |
208 void WebIDBCallbacksImpl::detach() { | 208 void WebIDBCallbacksImpl::detach() { |
209 m_request.clear(); | 209 m_request.clear(); |
210 } | 210 } |
211 | 211 |
212 } // namespace blink | 212 } // namespace blink |
OLD | NEW |