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

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

Issue 103083002: Decouple FileSystem and WebSQL callbacks from VoidCallback and it non-refcounted (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/modules/mediastream/RTCVoidRequestImpl.h ('k') | Source/modules/modules.gypi » ('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) 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 20 matching lines...) Expand all
31 #include "config.h" 31 #include "config.h"
32 32
33 #include "modules/mediastream/RTCVoidRequestImpl.h" 33 #include "modules/mediastream/RTCVoidRequestImpl.h"
34 34
35 #include "core/html/VoidCallback.h" 35 #include "core/html/VoidCallback.h"
36 #include "modules/mediastream/RTCErrorCallback.h" 36 #include "modules/mediastream/RTCErrorCallback.h"
37 #include "modules/mediastream/RTCPeerConnection.h" 37 #include "modules/mediastream/RTCPeerConnection.h"
38 38
39 namespace WebCore { 39 namespace WebCore {
40 40
41 PassRefPtr<RTCVoidRequestImpl> RTCVoidRequestImpl::create(ExecutionContext* cont ext, PassRefPtr<VoidCallback> successCallback, PassOwnPtr<RTCErrorCallback> erro rCallback) 41 PassRefPtr<RTCVoidRequestImpl> RTCVoidRequestImpl::create(ExecutionContext* cont ext, PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<RTCErrorCallback> erro rCallback)
42 { 42 {
43 RefPtr<RTCVoidRequestImpl> request = adoptRef(new RTCVoidRequestImpl(context , successCallback, errorCallback)); 43 RefPtr<RTCVoidRequestImpl> request = adoptRef(new RTCVoidRequestImpl(context , successCallback, errorCallback));
44 request->suspendIfNeeded(); 44 request->suspendIfNeeded();
45 return request.release(); 45 return request.release();
46 } 46 }
47 47
48 RTCVoidRequestImpl::RTCVoidRequestImpl(ExecutionContext* context, PassRefPtr<Voi dCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback) 48 RTCVoidRequestImpl::RTCVoidRequestImpl(ExecutionContext* context, PassOwnPtr<Voi dCallback> successCallback, PassOwnPtr<RTCErrorCallback> errorCallback)
49 : ActiveDOMObject(context) 49 : ActiveDOMObject(context)
50 , m_successCallback(successCallback) 50 , m_successCallback(successCallback)
51 , m_errorCallback(errorCallback) 51 , m_errorCallback(errorCallback)
52 { 52 {
53 } 53 }
54 54
55 RTCVoidRequestImpl::~RTCVoidRequestImpl() 55 RTCVoidRequestImpl::~RTCVoidRequestImpl()
56 { 56 {
57 } 57 }
58 58
(...skipping 18 matching lines...) Expand all
77 clear(); 77 clear();
78 } 78 }
79 79
80 void RTCVoidRequestImpl::clear() 80 void RTCVoidRequestImpl::clear()
81 { 81 {
82 m_successCallback.clear(); 82 m_successCallback.clear();
83 m_errorCallback.clear(); 83 m_errorCallback.clear();
84 } 84 }
85 85
86 } // namespace WebCore 86 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCVoidRequestImpl.h ('k') | Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698