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

Side by Side Diff: third_party/WebKit/Source/web/WebFormElementObserverImpl.h

Issue 2865233003: Use an MutationObserver to check when a password form disappears after XHR (Closed)
Patch Set: updates 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebFormElementObserverImpl_h
6 #define WebFormElementObserverImpl_h
7
8 #include "platform/heap/HeapAllocator.h"
9 #include "platform/heap/Member.h"
10 #include "platform/heap/SelfKeepAlive.h"
11 #include "platform/wtf/Compiler.h"
12 #include "public/web/modules/password_manager/WebFormElementObserver.h"
13 #include "web/WebExport.h"
14
15 namespace blink {
16
17 class HTMLElement;
18 class WebFormElementObserverCallback;
19
20 class WEB_EXPORT WebFormElementObserverImpl final
21 : public GarbageCollectedFinalized<WebFormElementObserverImpl>,
22 NON_EXPORTED_BASE(public WebFormElementObserver) {
23 WTF_MAKE_NONCOPYABLE(WebFormElementObserverImpl);
24
25 public:
26 WebFormElementObserverImpl(HTMLElement&,
27 std::unique_ptr<WebFormElementObserverCallback>);
28 ~WebFormElementObserverImpl() override;
29
30 // WebFormElementObserver implementation.
31 void Disconnect() override;
32
33 DECLARE_VIRTUAL_TRACE();
34
35 private:
36 class ObserverCallback;
37
38 Member<ObserverCallback> mutation_callback_;
39
40 // WebFormElementObserverImpl must remain alive until Disconnect() is called.
41 SelfKeepAlive<WebFormElementObserverImpl> self_keep_alive_;
42 };
43
44 } // namespace blink
45
46 #endif // WebFormElementObserverImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698