| 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 19 matching lines...) Expand all Loading... |
| 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 blink { | 39 namespace blink { |
| 40 |
| 40 class RTCVoidRequest; | 41 class RTCVoidRequest; |
| 41 } | |
| 42 | |
| 43 namespace blink { | |
| 44 | 42 |
| 45 class WebRTCVoidRequest { | 43 class WebRTCVoidRequest { |
| 46 public: | 44 public: |
| 47 class ExtraData { | 45 class ExtraData { |
| 48 public: | 46 public: |
| 49 virtual ~ExtraData() { } | 47 virtual ~ExtraData() { } |
| 50 }; | 48 }; |
| 51 | 49 |
| 52 WebRTCVoidRequest() { } | 50 WebRTCVoidRequest() { } |
| 53 WebRTCVoidRequest(const WebRTCVoidRequest& other) { assign(other); } | 51 WebRTCVoidRequest(const WebRTCVoidRequest& other) { assign(other); } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 68 BLINK_PLATFORM_EXPORT void requestFailed(const WebString& error) const; | 66 BLINK_PLATFORM_EXPORT void requestFailed(const WebString& error) const; |
| 69 | 67 |
| 70 // Extra data associated with this object. | 68 // Extra data associated with this object. |
| 71 // If non-null, the extra data pointer will be deleted when the object is de
stroyed. | 69 // 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 | 70 // Setting the extra data pointer will cause any existing non-null |
| 73 // extra data pointer to be deleted. | 71 // extra data pointer to be deleted. |
| 74 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; | 72 BLINK_PLATFORM_EXPORT ExtraData* extraData() const; |
| 75 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); | 73 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*); |
| 76 | 74 |
| 77 #if INSIDE_BLINK | 75 #if INSIDE_BLINK |
| 78 BLINK_PLATFORM_EXPORT WebRTCVoidRequest(const WTF::PassRefPtr<blink::RTCVoid
Request>&); | 76 BLINK_PLATFORM_EXPORT WebRTCVoidRequest(const WTF::PassRefPtr<RTCVoidRequest
>&); |
| 79 #endif | 77 #endif |
| 80 | 78 |
| 81 private: | 79 private: |
| 82 WebPrivatePtr<blink::RTCVoidRequest> m_private; | 80 WebPrivatePtr<RTCVoidRequest> m_private; |
| 83 }; | 81 }; |
| 84 | 82 |
| 85 } // namespace blink | 83 } // namespace blink |
| 86 | 84 |
| 87 #endif // WebRTCVoidRequest_h | 85 #endif // WebRTCVoidRequest_h |
| OLD | NEW |