OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebRTCVoidRequest_h | 31 #ifndef WebRTCVoidRequest_h |
32 #define WebRTCVoidRequest_h | 32 #define WebRTCVoidRequest_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebNonCopyable.h" | 35 #include "WebNonCopyable.h" |
36 #include "WebPrivatePtr.h" | 36 #include "WebPrivatePtr.h" |
37 #include "WebString.h" | 37 #include "WebString.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace blink { |
40 class RTCVoidRequest; | 40 class RTCVoidRequest; |
41 } | 41 } |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class WebRTCVoidRequest { | 45 class WebRTCVoidRequest { |
46 public: | 46 public: |
47 class ExtraData { | 47 class ExtraData { |
48 public: | 48 public: |
49 virtual ~ExtraData() { } | 49 virtual ~ExtraData() { } |
(...skipping 18 matching lines...) Expand all Loading... |
68 BLINK_PLATFORM_EXPORT void requestFailed(const WebString& error) const; | 68 BLINK_PLATFORM_EXPORT void requestFailed(const WebString& error) const; |
69 | 69 |
70 // Extra data associated with this object. | 70 // Extra data associated with this object. |
71 // If non-null, the extra data pointer will be deleted when the object is de
stroyed. | 71 // If non-null, the extra data pointer will be deleted when the object is de
stroyed. |
72 // Setting the extra data pointer will cause any existing non-null | 72 // Setting the extra data pointer will cause any existing non-null |
73 // extra data pointer to be deleted. | 73 // extra data pointer to be deleted. |
74 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 74 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; |
75 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 75 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
76 | 76 |
77 #if INSIDE_BLINK | 77 #if INSIDE_BLINK |
78 BLINK_PLATFORM_EXPORT WebRTCVoidRequest(const WTF::PassRefPtr<WebCore::RTCVo
idRequest>&); | 78 BLINK_PLATFORM_EXPORT WebRTCVoidRequest(const WTF::PassRefPtr<blink::RTCVoid
Request>&); |
79 #endif | 79 #endif |
80 | 80 |
81 private: | 81 private: |
82 WebPrivatePtr<WebCore::RTCVoidRequest> m_private; | 82 WebPrivatePtr<blink::RTCVoidRequest> m_private; |
83 }; | 83 }; |
84 | 84 |
85 } // namespace blink | 85 } // namespace blink |
86 | 86 |
87 #endif // WebRTCVoidRequest_h | 87 #endif // WebRTCVoidRequest_h |
OLD | NEW |