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

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

Issue 85263006: Make IDL Callbacks non-refcounted by default (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years 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) 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 23 matching lines...) Expand all
34 #include "core/dom/ActiveDOMObject.h" 34 #include "core/dom/ActiveDOMObject.h"
35 #include "platform/mediastream/RTCVoidRequest.h" 35 #include "platform/mediastream/RTCVoidRequest.h"
36 36
37 namespace WebCore { 37 namespace WebCore {
38 38
39 class RTCErrorCallback; 39 class RTCErrorCallback;
40 class VoidCallback; 40 class VoidCallback;
41 41
42 class RTCVoidRequestImpl : public RTCVoidRequest, public ActiveDOMObject { 42 class RTCVoidRequestImpl : public RTCVoidRequest, public ActiveDOMObject {
43 public: 43 public:
44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassRefPtr<V oidCallback>, PassRefPtr<RTCErrorCallback>); 44 static PassRefPtr<RTCVoidRequestImpl> create(ExecutionContext*, PassRefPtr<V oidCallback>, PassOwnPtr<RTCErrorCallback>);
45 virtual ~RTCVoidRequestImpl(); 45 virtual ~RTCVoidRequestImpl();
46 46
47 virtual void requestSucceeded(); 47 virtual void requestSucceeded();
48 virtual void requestFailed(const String& error); 48 virtual void requestFailed(const String& error);
49 49
50 // ActiveDOMObject 50 // ActiveDOMObject
51 virtual void stop() OVERRIDE; 51 virtual void stop() OVERRIDE;
52 52
53 private: 53 private:
54 RTCVoidRequestImpl(ExecutionContext*, PassRefPtr<VoidCallback>, PassRefPtr<R TCErrorCallback>); 54 RTCVoidRequestImpl(ExecutionContext*, PassRefPtr<VoidCallback>, PassOwnPtr<R TCErrorCallback>);
55 55
56 void clear(); 56 void clear();
57 57
58 RefPtr<VoidCallback> m_successCallback; 58 RefPtr<VoidCallback> m_successCallback;
59 RefPtr<RTCErrorCallback> m_errorCallback; 59 OwnPtr<RTCErrorCallback> m_errorCallback;
60 }; 60 };
61 61
62 } // namespace WebCore 62 } // namespace WebCore
63 63
64 #endif // RTCVoidRequestImpl_h 64 #endif // RTCVoidRequestImpl_h
65 65
66 66
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCStatsRequestImpl.cpp ('k') | Source/modules/mediastream/RTCVoidRequestImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698