Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Side by Side Diff: public/platform/WebRTCSessionDescriptionRequest.h

Issue 1233793002: Remove unused ExtraData support on exported mediastream objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: include file tidying Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 25 matching lines...) Expand all
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
41 class RTCSessionDescriptionRequest; 41 class RTCSessionDescriptionRequest;
42 class WebRTCSessionDescription; 42 class WebRTCSessionDescription;
43 43
44 class WebRTCSessionDescriptionRequest { 44 class WebRTCSessionDescriptionRequest {
45 public: 45 public:
46 class ExtraData {
47 public:
48 virtual ~ExtraData() { }
49 };
50
51 WebRTCSessionDescriptionRequest() { } 46 WebRTCSessionDescriptionRequest() { }
52 WebRTCSessionDescriptionRequest(const WebRTCSessionDescriptionRequest& other ) { assign(other); } 47 WebRTCSessionDescriptionRequest(const WebRTCSessionDescriptionRequest& other ) { assign(other); }
53 ~WebRTCSessionDescriptionRequest() { reset(); } 48 ~WebRTCSessionDescriptionRequest() { reset(); }
54 49
55 WebRTCSessionDescriptionRequest& operator=(const WebRTCSessionDescriptionReq uest& other) 50 WebRTCSessionDescriptionRequest& operator=(const WebRTCSessionDescriptionReq uest& other)
56 { 51 {
57 assign(other); 52 assign(other);
58 return *this; 53 return *this;
59 } 54 }
60 55
61 BLINK_PLATFORM_EXPORT void assign(const WebRTCSessionDescriptionRequest&); 56 BLINK_PLATFORM_EXPORT void assign(const WebRTCSessionDescriptionRequest&);
62 57
63 BLINK_PLATFORM_EXPORT void reset(); 58 BLINK_PLATFORM_EXPORT void reset();
64 bool isNull() const { return m_private.isNull(); } 59 bool isNull() const { return m_private.isNull(); }
65 60
66 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebRTCSessionDescription&) const; 61 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebRTCSessionDescription&) const;
67 BLINK_PLATFORM_EXPORT void requestFailed(const WebString& error) const; 62 BLINK_PLATFORM_EXPORT void requestFailed(const WebString& error) const;
68 63
69 // Extra data associated with this object.
70 // If non-null, the extra data pointer will be deleted when the object is de stroyed.
71 // Setting the extra data pointer will cause any existing non-null
72 // extra data pointer to be deleted.
73 BLINK_PLATFORM_EXPORT ExtraData* extraData() const;
74 BLINK_PLATFORM_EXPORT void setExtraData(ExtraData*);
75
76 #if INSIDE_BLINK 64 #if INSIDE_BLINK
77 BLINK_PLATFORM_EXPORT WebRTCSessionDescriptionRequest(RTCSessionDescriptionR equest*); 65 BLINK_PLATFORM_EXPORT WebRTCSessionDescriptionRequest(RTCSessionDescriptionR equest*);
78 #endif 66 #endif
79 67
80 private: 68 private:
81 WebPrivatePtr<RTCSessionDescriptionRequest> m_private; 69 WebPrivatePtr<RTCSessionDescriptionRequest> m_private;
82 }; 70 };
83 71
84 } // namespace blink 72 } // namespace blink
85 73
86 #endif // WebRTCSessionDescriptionRequest_h 74 #endif // WebRTCSessionDescriptionRequest_h
OLDNEW
« no previous file with comments | « public/platform/WebMediaStreamTrackSourcesRequest.h ('k') | public/platform/WebRTCVoidRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698