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

Side by Side Diff: third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Allow cpp_only to be set by the invoker. Created 4 years, 2 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 ~IDBOpenDBRequest() override; 42 ~IDBOpenDBRequest() override;
43 DECLARE_VIRTUAL_TRACE(); 43 DECLARE_VIRTUAL_TRACE();
44 44
45 using IDBRequest::onSuccess; 45 using IDBRequest::onSuccess;
46 46
47 void onBlocked(int64_t existingVersion) override; 47 void onBlocked(int64_t existingVersion) override;
48 void onUpgradeNeeded(int64_t oldVersion, std::unique_ptr<WebIDBDatabase>, co nst IDBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) override; 48 void onUpgradeNeeded(int64_t oldVersion, std::unique_ptr<WebIDBDatabase>, co nst IDBDatabaseMetadata&, WebIDBDataLoss, String dataLossMessage) override;
49 void onSuccess(std::unique_ptr<WebIDBDatabase>, const IDBDatabaseMetadata&) override; 49 void onSuccess(std::unique_ptr<WebIDBDatabase>, const IDBDatabaseMetadata&) override;
50 void onSuccess(int64_t oldVersion) override; 50 void onSuccess(int64_t oldVersion) override;
51 51
52 // ActiveDOMObject
53 void stop() final;
54
52 // EventTarget 55 // EventTarget
53 const AtomicString& interfaceName() const override; 56 const AtomicString& interfaceName() const override;
54 57
55 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); 58 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked);
56 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); 59 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded);
57 60
58 protected: 61 protected:
59 bool shouldEnqueueEvent() const override; 62 bool shouldEnqueueEvent() const override;
60 63
61 // EventTarget 64 // EventTarget
62 DispatchEventResult dispatchEventInternal(Event*) override; 65 DispatchEventResult dispatchEventInternal(Event*) override;
63 66
64 private: 67 private:
65 IDBOpenDBRequest(ScriptState*, IDBDatabaseCallbacks*, int64_t transactionId, int64_t version); 68 IDBOpenDBRequest(ScriptState*, IDBDatabaseCallbacks*, int64_t transactionId, int64_t version);
66 69
67 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 70 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
68 const int64_t m_transactionId; 71 const int64_t m_transactionId;
69 int64_t m_version; 72 int64_t m_version;
70 }; 73 };
71 74
72 } // namespace blink 75 } // namespace blink
73 76
74 #endif // IDBOpenDBRequest_h 77 #endif // IDBOpenDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698