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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Address last nits and fix leaks in unit tests. 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 void onBlocked(int64_t existingVersion) override; 51 void onBlocked(int64_t existingVersion) override;
52 void onUpgradeNeeded(int64_t oldVersion, 52 void onUpgradeNeeded(int64_t oldVersion,
53 std::unique_ptr<WebIDBDatabase>, 53 std::unique_ptr<WebIDBDatabase>,
54 const IDBDatabaseMetadata&, 54 const IDBDatabaseMetadata&,
55 WebIDBDataLoss, 55 WebIDBDataLoss,
56 String dataLossMessage) override; 56 String dataLossMessage) override;
57 void onSuccess(std::unique_ptr<WebIDBDatabase>, 57 void onSuccess(std::unique_ptr<WebIDBDatabase>,
58 const IDBDatabaseMetadata&) override; 58 const IDBDatabaseMetadata&) override;
59 void onSuccess(int64_t oldVersion) override; 59 void onSuccess(int64_t oldVersion) override;
60 60
61 // ActiveDOMObject
62 void contextDestroyed() final;
63
61 // EventTarget 64 // EventTarget
62 const AtomicString& interfaceName() const override; 65 const AtomicString& interfaceName() const override;
63 66
64 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked);
65 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded);
66 69
67 protected: 70 protected:
68 bool shouldEnqueueEvent() const override; 71 bool shouldEnqueueEvent() const override;
69 72
70 // EventTarget 73 // EventTarget
71 DispatchEventResult dispatchEventInternal(Event*) override; 74 DispatchEventResult dispatchEventInternal(Event*) override;
72 75
73 private: 76 private:
74 IDBOpenDBRequest(ScriptState*, 77 IDBOpenDBRequest(ScriptState*,
75 IDBDatabaseCallbacks*, 78 IDBDatabaseCallbacks*,
76 int64_t transactionId, 79 int64_t transactionId,
77 int64_t version); 80 int64_t version);
78 81
79 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 82 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
80 const int64_t m_transactionId; 83 const int64_t m_transactionId;
81 int64_t m_version; 84 int64_t m_version;
82 }; 85 };
83 86
84 } // namespace blink 87 } // namespace blink
85 88
86 #endif // IDBOpenDBRequest_h 89 #endif // IDBOpenDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698