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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/Presentation.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Presentation_h 5 #ifndef Presentation_h
6 #define Presentation_h 6 #define Presentation_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/frame/DOMWindowProperty.h" 9 #include "core/frame/DOMWindowProperty.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/heap/Heap.h" 11 #include "platform/heap/Heap.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class LocalFrame; 15 class LocalFrame;
16 class PresentationReceiver; 16 class PresentationReceiver;
17 class PresentationRequest; 17 class PresentationRequest;
18 18
19 // Implements the main entry point of the Presentation API corresponding to the Presentation.idl 19 // Implements the main entry point of the Presentation API corresponding to the Presentation.idl
20 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details . 20 // See https://w3c.github.io/presentation-api/#navigatorpresentation for details .
21 // 21 //
22 // TODO(Oilpan): switch to GarbageCollected<Presentation> once object is uncondi tionally on the Oilpan heap. 22 // TODO(Oilpan): switch to GarbageCollected<Presentation> once object is uncondi tionally on the Oilpan heap.
23 class Presentation final 23 class Presentation final
24 : public GarbageCollectedFinalized<Presentation> 24 : public GarbageCollectedFinalized<Presentation>
25 , public ScriptWrappable 25 , public ScriptWrappable
26 , public DOMWindowProperty { 26 , public DOMWindowProperty {
27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Presentation); 27 USING_GARBAGE_COLLECTED_MIXIN(Presentation);
28 DEFINE_WRAPPERTYPEINFO(); 28 DEFINE_WRAPPERTYPEINFO();
29 public: 29 public:
30 static Presentation* create(LocalFrame*); 30 static Presentation* create(LocalFrame*);
31 #if !ENABLE(OILPAN) 31 #if !ENABLE(OILPAN)
32 ~Presentation() override = default; 32 ~Presentation() override = default;
33 #endif 33 #endif
34 34
35 DECLARE_VIRTUAL_TRACE(); 35 DECLARE_VIRTUAL_TRACE();
36 36
37 PresentationRequest* defaultRequest() const; 37 PresentationRequest* defaultRequest() const;
38 void setDefaultRequest(PresentationRequest*); 38 void setDefaultRequest(PresentationRequest*);
39 39
40 PresentationReceiver* receiver(); 40 PresentationReceiver* receiver();
41 41
42 private: 42 private:
43 explicit Presentation(LocalFrame*); 43 explicit Presentation(LocalFrame*);
44 44
45 // Default PresentationRequest used by the embedder. 45 // Default PresentationRequest used by the embedder.
46 Member<PresentationRequest> m_defaultRequest; 46 Member<PresentationRequest> m_defaultRequest;
47 47
48 // PresentationReceiver instance. It will always be nullptr if the Blink 48 // PresentationReceiver instance. It will always be nullptr if the Blink
49 // instance is not running as a presentation receiver. 49 // instance is not running as a presentation receiver.
50 Member<PresentationReceiver> m_receiver; 50 Member<PresentationReceiver> m_receiver;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // Presentation_h 55 #endif // Presentation_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698