OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 #ifndef MediaStreamTrackSourcesRequest_h | 26 #ifndef MediaStreamTrackSourcesRequest_h |
27 #define MediaStreamTrackSourcesRequest_h | 27 #define MediaStreamTrackSourcesRequest_h |
28 | 28 |
29 #include "platform/heap/Handle.h" | 29 #include "platform/heap/Handle.h" |
30 #include "public/platform/WebVector.h" | 30 #include "public/platform/WebVector.h" |
31 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
32 #include "wtf/PassOwnPtr.h" | 32 #include "wtf/PassOwnPtr.h" |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
| 35 |
35 class WebSourceInfo; | 36 class WebSourceInfo; |
36 } | |
37 | |
38 namespace blink { | |
39 | 37 |
40 class MediaStreamTrackSourcesRequest : public GarbageCollectedFinalized<MediaStr
eamTrackSourcesRequest> { | 38 class MediaStreamTrackSourcesRequest : public GarbageCollectedFinalized<MediaStr
eamTrackSourcesRequest> { |
41 public: | 39 public: |
42 class ExtraData { | 40 class ExtraData { |
43 public: | 41 public: |
44 virtual ~ExtraData() { } | 42 virtual ~ExtraData() { } |
45 }; | 43 }; |
46 | 44 |
47 virtual ~MediaStreamTrackSourcesRequest() { } | 45 virtual ~MediaStreamTrackSourcesRequest() { } |
48 | 46 |
49 virtual String origin() = 0; | 47 virtual String origin() = 0; |
50 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
= 0; | 48 virtual void requestSucceeded(const blink::WebVector<WebSourceInfo>&) = 0; |
51 | 49 |
52 ExtraData* extraData() const { return m_extraData.get(); } | 50 ExtraData* extraData() const { return m_extraData.get(); } |
53 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData
; } | 51 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData
; } |
54 | 52 |
55 virtual void trace(Visitor*) { } | 53 virtual void trace(Visitor*) { } |
56 | 54 |
57 protected: | 55 protected: |
58 MediaStreamTrackSourcesRequest() { } | 56 MediaStreamTrackSourcesRequest() { } |
59 | 57 |
60 private: | 58 private: |
61 OwnPtr<ExtraData> m_extraData; | 59 OwnPtr<ExtraData> m_extraData; |
62 }; | 60 }; |
63 | 61 |
64 } // namespace blink | 62 } // namespace blink |
65 | 63 |
66 #endif // MediaStreamTrackSourcesRequest_h | 64 #endif // MediaStreamTrackSourcesRequest_h |
OLD | NEW |