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

Side by Side Diff: Source/modules/mediastream/MediaStreamTrackSourcesRequest.h

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 16 matching lines...) Expand all
27 #define MediaStreamTrackSourcesRequest_h 27 #define MediaStreamTrackSourcesRequest_h
28 28
29 #include "modules/mediastream/SourceInfo.h" 29 #include "modules/mediastream/SourceInfo.h"
30 #include "platform/Timer.h" 30 #include "platform/Timer.h"
31 #include "public/platform/WebVector.h" 31 #include "public/platform/WebVector.h"
32 #include "wtf/PassRefPtr.h" 32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefCounted.h" 33 #include "wtf/RefCounted.h"
34 #include "wtf/RefPtr.h" 34 #include "wtf/RefPtr.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 namespace WebKit { 37 namespace blink {
38 class WebSourceInfo; 38 class WebSourceInfo;
39 } 39 }
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class MediaStreamTrackSourcesCallback; 43 class MediaStreamTrackSourcesCallback;
44 class ExecutionContext; 44 class ExecutionContext;
45 45
46 class MediaStreamTrackSourcesRequest FINAL : public RefCounted<MediaStreamTrackS ourcesRequest> { 46 class MediaStreamTrackSourcesRequest FINAL : public RefCounted<MediaStreamTrackS ourcesRequest> {
47 public: 47 public:
48 class ExtraData : public RefCounted<ExtraData> { 48 class ExtraData : public RefCounted<ExtraData> {
49 public: 49 public:
50 virtual ~ExtraData() { } 50 virtual ~ExtraData() { }
51 }; 51 };
52 52
53 static PassRefPtr<MediaStreamTrackSourcesRequest> create(ExecutionContext*, PassRefPtr<MediaStreamTrackSourcesCallback>); 53 static PassRefPtr<MediaStreamTrackSourcesRequest> create(ExecutionContext*, PassRefPtr<MediaStreamTrackSourcesCallback>);
54 ~MediaStreamTrackSourcesRequest(); 54 ~MediaStreamTrackSourcesRequest();
55 55
56 String origin() { return m_origin; } 56 String origin() { return m_origin; }
57 57
58 void requestSucceeded(const WebKit::WebVector<WebKit::WebSourceInfo>&); 58 void requestSucceeded(const blink::WebVector<blink::WebSourceInfo>&);
59 59
60 PassRefPtr<ExtraData> extraData() const { return m_extraData; } 60 PassRefPtr<ExtraData> extraData() const { return m_extraData; }
61 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; } 61 void setExtraData(PassRefPtr<ExtraData> extraData) { m_extraData = extraData ; }
62 62
63 private: 63 private:
64 MediaStreamTrackSourcesRequest(ExecutionContext*, PassRefPtr<MediaStreamTrac kSourcesCallback>); 64 MediaStreamTrackSourcesRequest(ExecutionContext*, PassRefPtr<MediaStreamTrac kSourcesCallback>);
65 65
66 void scheduledEventTimerFired(Timer<MediaStreamTrackSourcesRequest>*); 66 void scheduledEventTimerFired(Timer<MediaStreamTrackSourcesRequest>*);
67 67
68 RefPtr<MediaStreamTrackSourcesCallback> m_callback; 68 RefPtr<MediaStreamTrackSourcesCallback> m_callback;
69 RefPtr<ExtraData> m_extraData; 69 RefPtr<ExtraData> m_extraData;
70 String m_origin; 70 String m_origin;
71 Timer<MediaStreamTrackSourcesRequest> m_scheduledEventTimer; 71 Timer<MediaStreamTrackSourcesRequest> m_scheduledEventTimer;
72 SourceInfoVector m_sourceInfos; 72 SourceInfoVector m_sourceInfos;
73 RefPtr<MediaStreamTrackSourcesRequest> m_protect; 73 RefPtr<MediaStreamTrackSourcesRequest> m_protect;
74 }; 74 };
75 75
76 } // namespace WebCore 76 } // namespace WebCore
77 77
78 #endif // MediaStreamTrackSourcesRequest_h 78 #endif // MediaStreamTrackSourcesRequest_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBVersionChangeEvent.cpp ('k') | Source/modules/mediastream/MediaStreamTrackSourcesRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698