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 17 matching lines...) Expand all Loading... |
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 class WebSourceInfo; | 35 class WebSourceInfo; |
36 } | 36 } |
37 | 37 |
38 namespace WebCore { | 38 namespace blink { |
39 | 39 |
40 class MediaStreamTrackSourcesRequest : public GarbageCollectedFinalized<MediaStr
eamTrackSourcesRequest> { | 40 class MediaStreamTrackSourcesRequest : public GarbageCollectedFinalized<MediaStr
eamTrackSourcesRequest> { |
41 public: | 41 public: |
42 class ExtraData { | 42 class ExtraData { |
43 public: | 43 public: |
44 virtual ~ExtraData() { } | 44 virtual ~ExtraData() { } |
45 }; | 45 }; |
46 | 46 |
47 virtual ~MediaStreamTrackSourcesRequest() { } | 47 virtual ~MediaStreamTrackSourcesRequest() { } |
48 | 48 |
49 virtual String origin() = 0; | 49 virtual String origin() = 0; |
50 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
= 0; | 50 virtual void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&)
= 0; |
51 | 51 |
52 ExtraData* extraData() const { return m_extraData.get(); } | 52 ExtraData* extraData() const { return m_extraData.get(); } |
53 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData
; } | 53 void setExtraData(PassOwnPtr<ExtraData> extraData) { m_extraData = extraData
; } |
54 | 54 |
55 virtual void trace(Visitor*) { } | 55 virtual void trace(Visitor*) { } |
56 | 56 |
57 protected: | 57 protected: |
58 MediaStreamTrackSourcesRequest() { } | 58 MediaStreamTrackSourcesRequest() { } |
59 | 59 |
60 private: | 60 private: |
61 OwnPtr<ExtraData> m_extraData; | 61 OwnPtr<ExtraData> m_extraData; |
62 }; | 62 }; |
63 | 63 |
64 } // namespace WebCore | 64 } // namespace blink |
65 | 65 |
66 #endif // MediaStreamTrackSourcesRequest_h | 66 #endif // MediaStreamTrackSourcesRequest_h |
OLD | NEW |