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 28 matching lines...) Expand all Loading... |
39 #include "public/platform/WebIDBCursor.h" | 39 #include "public/platform/WebIDBCursor.h" |
40 #include "public/platform/WebIDBDatabase.h" | 40 #include "public/platform/WebIDBDatabase.h" |
41 #include "public/platform/WebIDBDatabaseError.h" | 41 #include "public/platform/WebIDBDatabaseError.h" |
42 #include "public/platform/WebIDBKey.h" | 42 #include "public/platform/WebIDBKey.h" |
43 | 43 |
44 using blink::WebBlobInfo; | 44 using blink::WebBlobInfo; |
45 using blink::WebData; | 45 using blink::WebData; |
46 using blink::WebIDBCursor; | 46 using blink::WebIDBCursor; |
47 using blink::WebIDBDatabase; | 47 using blink::WebIDBDatabase; |
48 using blink::WebIDBDatabaseError; | 48 using blink::WebIDBDatabaseError; |
49 using blink::WebIDBIndex; | |
50 using blink::WebIDBKey; | 49 using blink::WebIDBKey; |
51 using blink::WebIDBKeyPath; | 50 using blink::WebIDBKeyPath; |
52 using blink::WebIDBMetadata; | 51 using blink::WebIDBMetadata; |
53 using blink::WebVector; | 52 using blink::WebVector; |
54 | 53 |
55 namespace blink { | 54 namespace blink { |
56 | 55 |
57 // static | 56 // static |
58 PassOwnPtr<WebIDBCallbacksImpl> WebIDBCallbacksImpl::create(IDBRequest* request) | 57 PassOwnPtr<WebIDBCallbacksImpl> WebIDBCallbacksImpl::create(IDBRequest* request) |
59 { | 58 { |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 159 } |
161 | 160 |
162 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, unsigned short dataLoss, blink::WebStr
ing dataLossMessage) | 161 void WebIDBCallbacksImpl::onUpgradeNeeded(long long oldVersion, WebIDBDatabase*
database, const WebIDBMetadata& metadata, unsigned short dataLoss, blink::WebStr
ing dataLossMessage) |
163 { | 162 { |
164 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsync
CallbackStarting(m_request->executionContext(), m_asyncOperationId); | 163 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsync
CallbackStarting(m_request->executionContext(), m_asyncOperationId); |
165 m_request->onUpgradeNeeded(oldVersion, adoptPtr(database), metadata, static_
cast<blink::WebIDBDataLoss>(dataLoss), dataLossMessage); | 164 m_request->onUpgradeNeeded(oldVersion, adoptPtr(database), metadata, static_
cast<blink::WebIDBDataLoss>(dataLoss), dataLossMessage); |
166 InspectorInstrumentation::traceAsyncCallbackCompleted(cookie); | 165 InspectorInstrumentation::traceAsyncCallbackCompleted(cookie); |
167 } | 166 } |
168 | 167 |
169 } // namespace blink | 168 } // namespace blink |
OLD | NEW |