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

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

Issue 2870803002: Rename IDBRequest::On* callbacks to IDBRequest::Enqueue*. (Closed)
Patch Set: De-virtualized one more callback. Created 3 years, 7 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 28 matching lines...) Expand all
39 DEFINE_WRAPPERTYPEINFO(); 39 DEFINE_WRAPPERTYPEINFO();
40 40
41 public: 41 public:
42 static IDBOpenDBRequest* Create(ScriptState*, 42 static IDBOpenDBRequest* Create(ScriptState*,
43 IDBDatabaseCallbacks*, 43 IDBDatabaseCallbacks*,
44 int64_t transaction_id, 44 int64_t transaction_id,
45 int64_t version); 45 int64_t version);
46 ~IDBOpenDBRequest() override; 46 ~IDBOpenDBRequest() override;
47 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
48 48
49 using IDBRequest::OnSuccess; 49 using IDBRequest::EnqueueResponse;
50 50
51 void OnBlocked(int64_t existing_version) override; 51 void EnqueueBlocked(int64_t existing_version) override;
52 void OnUpgradeNeeded(int64_t old_version, 52 void EnqueueUpgradeNeeded(int64_t old_version,
53 std::unique_ptr<WebIDBDatabase>, 53 std::unique_ptr<WebIDBDatabase>,
54 const IDBDatabaseMetadata&, 54 const IDBDatabaseMetadata&,
55 WebIDBDataLoss, 55 WebIDBDataLoss,
56 String data_loss_message) override; 56 String data_loss_message) override;
57 void OnSuccess(std::unique_ptr<WebIDBDatabase>, 57 void EnqueueResponse(std::unique_ptr<WebIDBDatabase>,
58 const IDBDatabaseMetadata&) override; 58 const IDBDatabaseMetadata&) override;
59 void OnSuccess(int64_t old_version) override; 59 void EnqueueResponse(int64_t old_version) override;
60 60
61 // SuspendableObject 61 // SuspendableObject
62 void ContextDestroyed(ExecutionContext*) final; 62 void ContextDestroyed(ExecutionContext*) final;
63 63
64 // EventTarget 64 // EventTarget
65 const AtomicString& InterfaceName() const override; 65 const AtomicString& InterfaceName() const override;
66 66
67 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked); 67 DEFINE_ATTRIBUTE_EVENT_LISTENER(blocked);
68 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded); 68 DEFINE_ATTRIBUTE_EVENT_LISTENER(upgradeneeded);
69 69
(...skipping 10 matching lines...) Expand all
80 int64_t version); 80 int64_t version);
81 81
82 Member<IDBDatabaseCallbacks> database_callbacks_; 82 Member<IDBDatabaseCallbacks> database_callbacks_;
83 const int64_t transaction_id_; 83 const int64_t transaction_id_;
84 int64_t version_; 84 int64_t version_;
85 }; 85 };
86 86
87 } // namespace blink 87 } // namespace blink
88 88
89 #endif // IDBOpenDBRequest_h 89 #endif // IDBOpenDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698