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 21 matching lines...) Expand all Loading... |
32 #include "WebString.h" | 32 #include "WebString.h" |
33 #include "WebVector.h" | 33 #include "WebVector.h" |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 | 36 |
37 class MediaStreamTrackSourcesRequest; | 37 class MediaStreamTrackSourcesRequest; |
38 class WebSourceInfo; | 38 class WebSourceInfo; |
39 | 39 |
40 class WebMediaStreamTrackSourcesRequest { | 40 class WebMediaStreamTrackSourcesRequest { |
41 public: | 41 public: |
42 class ExtraData { | |
43 public: | |
44 virtual ~ExtraData() { } | |
45 }; | |
46 | |
47 WebMediaStreamTrackSourcesRequest() { } | 42 WebMediaStreamTrackSourcesRequest() { } |
48 WebMediaStreamTrackSourcesRequest(const WebMediaStreamTrackSourcesRequest& o
ther) { assign(other); } | 43 WebMediaStreamTrackSourcesRequest(const WebMediaStreamTrackSourcesRequest& o
ther) { assign(other); } |
49 ~WebMediaStreamTrackSourcesRequest() { reset(); } | 44 ~WebMediaStreamTrackSourcesRequest() { reset(); } |
50 | 45 |
51 WebMediaStreamTrackSourcesRequest& operator=(const WebMediaStreamTrackSource
sRequest& other) | 46 WebMediaStreamTrackSourcesRequest& operator=(const WebMediaStreamTrackSource
sRequest& other) |
52 { | 47 { |
53 assign(other); | 48 assign(other); |
54 return *this; | 49 return *this; |
55 } | 50 } |
56 | 51 |
57 BLINK_PLATFORM_EXPORT void assign(const WebMediaStreamTrackSourcesRequest&); | 52 BLINK_PLATFORM_EXPORT void assign(const WebMediaStreamTrackSourcesRequest&); |
58 | 53 |
59 BLINK_PLATFORM_EXPORT void reset(); | 54 BLINK_PLATFORM_EXPORT void reset(); |
60 bool isNull() const { return m_private.isNull(); } | 55 bool isNull() const { return m_private.isNull(); } |
61 | 56 |
62 BLINK_PLATFORM_EXPORT WebString origin() const; | 57 BLINK_PLATFORM_EXPORT WebString origin() const; |
63 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebVector<WebSourceInfo>&)
const; | 58 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebVector<WebSourceInfo>&)
const; |
64 | 59 |
65 // Extra data associated with this object. | |
66 // If non-null, the extra data pointer will be deleted when the object is de
stroyed. | |
67 // Setting the extra data pointer will cause any existing non-null | |
68 // extra data pointer to be deleted. | |
69 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | |
70 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | |
71 | |
72 #if INSIDE_BLINK | 60 #if INSIDE_BLINK |
73 BLINK_PLATFORM_EXPORT WebMediaStreamTrackSourcesRequest(MediaStreamTrackSour
cesRequest*); | 61 BLINK_PLATFORM_EXPORT WebMediaStreamTrackSourcesRequest(MediaStreamTrackSour
cesRequest*); |
74 #endif | 62 #endif |
75 | 63 |
76 private: | 64 private: |
77 WebPrivatePtr<MediaStreamTrackSourcesRequest> m_private; | 65 WebPrivatePtr<MediaStreamTrackSourcesRequest> m_private; |
78 }; | 66 }; |
79 | 67 |
80 } // namespace blink | 68 } // namespace blink |
81 | 69 |
82 #endif // WebMediaStreamTrackSourcesRequest_h | 70 #endif // WebMediaStreamTrackSourcesRequest_h |
OLD | NEW |