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

Side by Side Diff: third_party/WebKit/public/platform/WebMediaStreamTrackSourcesRequest.h

Issue 1928493002: Use url::Origin to represent security origins in MediaStream-related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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
« no previous file with comments | « third_party/WebKit/Source/platform/mediastream/MediaStreamTrackSourcesRequest.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebMediaStreamTrackSourcesRequest_h 26 #ifndef WebMediaStreamTrackSourcesRequest_h
27 #define WebMediaStreamTrackSourcesRequest_h 27 #define WebMediaStreamTrackSourcesRequest_h
28 28
29 #include "WebCommon.h" 29 #include "WebCommon.h"
30 #include "WebNonCopyable.h" 30 #include "WebNonCopyable.h"
31 #include "WebPrivatePtr.h" 31 #include "WebPrivatePtr.h"
32 #include "WebString.h" 32 #include "WebSecurityOrigin.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 WebMediaStreamTrackSourcesRequest() { } 42 WebMediaStreamTrackSourcesRequest() { }
43 WebMediaStreamTrackSourcesRequest(const WebMediaStreamTrackSourcesRequest& o ther) { assign(other); } 43 WebMediaStreamTrackSourcesRequest(const WebMediaStreamTrackSourcesRequest& o ther) { assign(other); }
44 ~WebMediaStreamTrackSourcesRequest() { reset(); } 44 ~WebMediaStreamTrackSourcesRequest() { reset(); }
45 45
46 WebMediaStreamTrackSourcesRequest& operator=(const WebMediaStreamTrackSource sRequest& other) 46 WebMediaStreamTrackSourcesRequest& operator=(const WebMediaStreamTrackSource sRequest& other)
47 { 47 {
48 assign(other); 48 assign(other);
49 return *this; 49 return *this;
50 } 50 }
51 51
52 BLINK_PLATFORM_EXPORT void assign(const WebMediaStreamTrackSourcesRequest&); 52 BLINK_PLATFORM_EXPORT void assign(const WebMediaStreamTrackSourcesRequest&);
53 53
54 BLINK_PLATFORM_EXPORT void reset(); 54 BLINK_PLATFORM_EXPORT void reset();
55 bool isNull() const { return m_private.isNull(); } 55 bool isNull() const { return m_private.isNull(); }
56 56
57 BLINK_PLATFORM_EXPORT WebString origin() const; 57 BLINK_PLATFORM_EXPORT WebSecurityOrigin origin() const;
58 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebVector<WebSourceInfo>&) const; 58 BLINK_PLATFORM_EXPORT void requestSucceeded(const WebVector<WebSourceInfo>&) const;
59 59
60 #if INSIDE_BLINK 60 #if INSIDE_BLINK
61 BLINK_PLATFORM_EXPORT WebMediaStreamTrackSourcesRequest(MediaStreamTrackSour cesRequest*); 61 BLINK_PLATFORM_EXPORT WebMediaStreamTrackSourcesRequest(MediaStreamTrackSour cesRequest*);
62 #endif 62 #endif
63 63
64 private: 64 private:
65 WebPrivatePtr<MediaStreamTrackSourcesRequest> m_private; 65 WebPrivatePtr<MediaStreamTrackSourcesRequest> m_private;
66 }; 66 };
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // WebMediaStreamTrackSourcesRequest_h 70 #endif // WebMediaStreamTrackSourcesRequest_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/mediastream/MediaStreamTrackSourcesRequest.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698