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

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

Issue 44983002: Devirtualize several mediastream class destructors (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « no previous file | Source/modules/mediastream/NavigatorUserMediaError.h » ('j') | 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 class ExecutionContext; 44 class ExecutionContext;
45 45
46 class MediaStreamTrackSourcesRequest : public RefCounted<MediaStreamTrackSources Request> { 46 class MediaStreamTrackSourcesRequest : public RefCounted<MediaStreamTrackSources Request> {
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 virtual ~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 WebKit::WebVector<WebKit::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 | « no previous file | Source/modules/mediastream/NavigatorUserMediaError.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698