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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PresentationRequest_h 5 #ifndef PresentationRequest_h
6 #define PresentationRequest_h 6 #define PresentationRequest_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "core/dom/ActiveDOMObject.h" 10 #include "core/dom/ActiveDOMObject.h"
11 #include "core/events/EventTarget.h" 11 #include "core/events/EventTarget.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "platform/heap/Heap.h" 13 #include "platform/heap/Heap.h"
14 #include "platform/weborigin/KURL.h" 14 #include "platform/weborigin/KURL.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 // Implements the PresentationRequest interface from the Presentation API from 18 // Implements the PresentationRequest interface from the Presentation API from
19 // which websites can start or join presentation connections. 19 // which websites can start or join presentation connections.
20 class PresentationRequest final 20 class PresentationRequest final
21 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationReq uest> 21 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationReq uest>
22 , public ActiveScriptWrappable 22 , public ActiveScriptWrappable
23 , public ActiveDOMObject { 23 , public ActiveDOMObject {
24 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationRequest); 24 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationRequest);
25 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest); 25 USING_GARBAGE_COLLECTED_MIXIN(PresentationRequest);
26 DEFINE_WRAPPERTYPEINFO(); 26 DEFINE_WRAPPERTYPEINFO();
27 public: 27 public:
28 ~PresentationRequest() = default; 28 ~PresentationRequest() = default;
29 29
30 static PresentationRequest* create(ExecutionContext*, const String& url, Exc eptionState&); 30 static PresentationRequest* create(ExecutionContext*, const String& url, Exc eptionState&);
31 31
32 // EventTarget implementation. 32 // EventTarget implementation.
33 const AtomicString& interfaceName() const override; 33 const AtomicString& interfaceName() const override;
34 ExecutionContext* getExecutionContext() const override; 34 ExecutionContext* getExecutionContext() const override;
35 35
36 // ActiveScriptWrappable implementation. 36 // ActiveScriptWrappable implementation.
37 bool hasPendingActivity() const final; 37 bool hasPendingActivity() const final;
38 38
39 ScriptPromise start(ScriptState*); 39 ScriptPromise start(ScriptState*);
40 ScriptPromise reconnect(ScriptState*, const String& id); 40 ScriptPromise reconnect(ScriptState*, const String& id);
41 ScriptPromise getAvailability(ScriptState*); 41 ScriptPromise getAvailability(ScriptState*);
42 42
43 const KURL& url() const; 43 const KURL& url() const;
44 44
45 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable); 45 DEFINE_ATTRIBUTE_EVENT_LISTENER(connectionavailable);
46 46
47 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
48 48
49 protected: 49 protected:
50 // EventTarget implementation. 50 // EventTarget implementation.
51 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override; 51 bool addEventListenerInternal(const AtomicString& eventType, RawPtr<EventLis tener>, const EventListenerOptions&) override;
52 52
53 private: 53 private:
54 PresentationRequest(ExecutionContext*, const KURL&); 54 PresentationRequest(ExecutionContext*, const KURL&);
55 55
56 KURL m_url; 56 KURL m_url;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // PresentationRequest_h 61 #endif // PresentationRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698