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

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

Issue 864533002: Fix template angle bracket syntax in modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 : m_request(request) 63 : m_request(request)
64 { 64 {
65 m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(m _request->executionContext(), "IndexedDB"); 65 m_asyncOperationId = InspectorInstrumentation::traceAsyncOperationStarting(m _request->executionContext(), "IndexedDB");
66 } 66 }
67 67
68 WebIDBCallbacksImpl::~WebIDBCallbacksImpl() 68 WebIDBCallbacksImpl::~WebIDBCallbacksImpl()
69 { 69 {
70 InspectorInstrumentation::traceAsyncOperationCompleted(m_request->executionC ontext(), m_asyncOperationId); 70 InspectorInstrumentation::traceAsyncOperationCompleted(m_request->executionC ontext(), m_asyncOperationId);
71 } 71 }
72 72
73 static PassOwnPtr<Vector<WebBlobInfo> > ConvertBlobInfo(const WebVector<WebBlobI nfo>& webBlobInfo) 73 static PassOwnPtr<Vector<WebBlobInfo>> ConvertBlobInfo(const WebVector<WebBlobIn fo>& webBlobInfo)
74 { 74 {
75 OwnPtr<Vector<WebBlobInfo> > blobInfo = adoptPtr(new Vector<WebBlobInfo>(web BlobInfo.size())); 75 OwnPtr<Vector<WebBlobInfo>> blobInfo = adoptPtr(new Vector<WebBlobInfo>(webB lobInfo.size()));
76 for (size_t i = 0; i < webBlobInfo.size(); ++i) 76 for (size_t i = 0; i < webBlobInfo.size(); ++i)
77 (*blobInfo)[i] = webBlobInfo[i]; 77 (*blobInfo)[i] = webBlobInfo[i];
78 return blobInfo.release(); 78 return blobInfo.release();
79 } 79 }
80 80
81 void WebIDBCallbacksImpl::onError(const WebIDBDatabaseError& error) 81 void WebIDBCallbacksImpl::onError(const WebIDBDatabaseError& error)
82 { 82 {
83 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsync CallbackStarting(m_request->executionContext(), m_asyncOperationId); 83 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsync CallbackStarting(m_request->executionContext(), m_asyncOperationId);
84 m_request->onError(error); 84 m_request->onError(error);
85 InspectorInstrumentation::traceAsyncCallbackCompleted(cookie); 85 InspectorInstrumentation::traceAsyncCallbackCompleted(cookie);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 159 }
160 160
161 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)
162 { 162 {
163 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsync CallbackStarting(m_request->executionContext(), m_asyncOperationId); 163 InspectorInstrumentationCookie cookie = InspectorInstrumentation::traceAsync CallbackStarting(m_request->executionContext(), m_asyncOperationId);
164 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);
165 InspectorInstrumentation::traceAsyncCallbackCompleted(cookie); 165 InspectorInstrumentation::traceAsyncCallbackCompleted(cookie);
166 } 166 }
167 167
168 } // namespace blink 168 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698