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

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

Issue 1318793005: [part 2] Make classes and structures in modules fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 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 30 matching lines...) Expand all
41 class WebData; 41 class WebData;
42 class WebIDBCursor; 42 class WebIDBCursor;
43 class WebIDBDatabase; 43 class WebIDBDatabase;
44 class WebIDBDatabaseError; 44 class WebIDBDatabaseError;
45 class WebIDBKey; 45 class WebIDBKey;
46 class WebIDBKeyPath; 46 class WebIDBKeyPath;
47 struct WebIDBMetadata; 47 struct WebIDBMetadata;
48 struct WebIDBValue; 48 struct WebIDBValue;
49 49
50 class WebIDBCallbacksImpl final : public WebIDBCallbacks { 50 class WebIDBCallbacksImpl final : public WebIDBCallbacks {
51 WTF_MAKE_FAST_ALLOCATED(WebIDBCallbacksImpl);
51 public: 52 public:
52 static PassOwnPtr<WebIDBCallbacksImpl> create(IDBRequest*); 53 static PassOwnPtr<WebIDBCallbacksImpl> create(IDBRequest*);
53 54
54 ~WebIDBCallbacksImpl() override; 55 ~WebIDBCallbacksImpl() override;
55 56
56 // Pointers transfer ownership. 57 // Pointers transfer ownership.
57 void onError(const WebIDBDatabaseError&) override; 58 void onError(const WebIDBDatabaseError&) override;
58 void onSuccess(const WebVector<WebString>&) override; 59 void onSuccess(const WebVector<WebString>&) override;
59 void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& primaryKey, const WebData&, const WebVector<WebBlobInfo>&) override; 60 void onSuccess(WebIDBCursor*, const WebIDBKey&, const WebIDBKey& primaryKey, const WebData&, const WebVector<WebBlobInfo>&) override;
60 void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override; 61 void onSuccess(WebIDBDatabase*, const WebIDBMetadata&) override;
(...skipping 11 matching lines...) Expand all
72 private: 73 private:
73 explicit WebIDBCallbacksImpl(IDBRequest*); 74 explicit WebIDBCallbacksImpl(IDBRequest*);
74 75
75 Persistent<IDBRequest> m_request; 76 Persistent<IDBRequest> m_request;
76 int m_asyncOperationId; 77 int m_asyncOperationId;
77 }; 78 };
78 79
79 } // namespace blink 80 } // namespace blink
80 81
81 #endif // WebIDBCallbacksImpl_h 82 #endif // WebIDBCallbacksImpl_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBMetadata.h ('k') | Source/modules/indexeddb/WebIDBDatabaseCallbacksImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698