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

Side by Side Diff: Source/modules/presentation/PresentationSession.h

Issue 1212423003: Presentation API: Blink changes to allow getAvailability() to be rejected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@presentation-availability-cleanups
Patch Set: Created 5 years, 5 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 PresentationSession_h 5 #ifndef PresentationSession_h
6 #define PresentationSession_h 6 #define PresentationSession_h
7 7
8 #include "core/events/EventTarget.h" 8 #include "core/events/EventTarget.h"
9 #include "core/fileapi/Blob.h" 9 #include "core/fileapi/Blob.h"
10 #include "core/fileapi/FileError.h" 10 #include "core/fileapi/FileError.h"
(...skipping 14 matching lines...) Expand all
25 class PresentationController; 25 class PresentationController;
26 26
27 class PresentationSession final 27 class PresentationSession final
28 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSes sion> 28 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationSes sion>
29 , public DOMWindowProperty { 29 , public DOMWindowProperty {
30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationSession); 30 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationSession);
31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession); 31 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationSession);
32 DEFINE_WRAPPERTYPEINFO(); 32 DEFINE_WRAPPERTYPEINFO();
33 public: 33 public:
34 static PresentationSession* take(WebPresentationSessionClient*, Presentation *); 34 static PresentationSession* take(WebPresentationSessionClient*, Presentation *);
35 static void dispose(WebPresentationSessionClient*);
36 virtual ~PresentationSession(); 35 virtual ~PresentationSession();
37 36
38 // EventTarget implementation. 37 // EventTarget implementation.
39 virtual const AtomicString& interfaceName() const override; 38 virtual const AtomicString& interfaceName() const override;
40 virtual ExecutionContext* executionContext() const override; 39 virtual ExecutionContext* executionContext() const override;
41 40
42 DECLARE_VIRTUAL_TRACE(); 41 DECLARE_VIRTUAL_TRACE();
43 42
44 const String id() const { return m_id; } 43 const String id() const { return m_id; }
45 const WTF::AtomicString& state() const; 44 const WTF::AtomicString& state() const;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 WebPresentationSessionState m_state; 108 WebPresentationSessionState m_state;
110 109
111 // For Blob data handling. 110 // For Blob data handling.
112 Member<BlobLoader> m_blobLoader; 111 Member<BlobLoader> m_blobLoader;
113 Deque<OwnPtr<Message>> m_messages; 112 Deque<OwnPtr<Message>> m_messages;
114 }; 113 };
115 114
116 } // namespace blink 115 } // namespace blink
117 116
118 #endif // PresentationSession_h 117 #endif // PresentationSession_h
OLDNEW
« no previous file with comments | « Source/modules/presentation/PresentationError.cpp ('k') | Source/modules/presentation/PresentationSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698