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

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

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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 : ActiveDOMObject(context) 51 : ActiveDOMObject(context)
52 , m_successCallback(successCallback) 52 , m_successCallback(successCallback)
53 , m_errorCallback(errorCallback) 53 , m_errorCallback(errorCallback)
54 { 54 {
55 } 55 }
56 56
57 RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl() 57 RTCSessionDescriptionRequestImpl::~RTCSessionDescriptionRequestImpl()
58 { 58 {
59 } 59 }
60 60
61 void RTCSessionDescriptionRequestImpl::requestSucceeded(const WebKit::WebRTCSess ionDescription& webSessionDescription) 61 void RTCSessionDescriptionRequestImpl::requestSucceeded(const blink::WebRTCSessi onDescription& webSessionDescription)
62 { 62 {
63 if (m_successCallback) { 63 if (m_successCallback) {
64 RefPtr<RTCSessionDescription> sessionDescription = RTCSessionDescription ::create(webSessionDescription); 64 RefPtr<RTCSessionDescription> sessionDescription = RTCSessionDescription ::create(webSessionDescription);
65 m_successCallback->handleEvent(sessionDescription.get()); 65 m_successCallback->handleEvent(sessionDescription.get());
66 } 66 }
67 67
68 clear(); 68 clear();
69 } 69 }
70 70
71 void RTCSessionDescriptionRequestImpl::requestFailed(const String& error) 71 void RTCSessionDescriptionRequestImpl::requestFailed(const String& error)
72 { 72 {
73 if (m_errorCallback) 73 if (m_errorCallback)
74 m_errorCallback->handleEvent(error); 74 m_errorCallback->handleEvent(error);
75 75
76 clear(); 76 clear();
77 } 77 }
78 78
79 void RTCSessionDescriptionRequestImpl::stop() 79 void RTCSessionDescriptionRequestImpl::stop()
80 { 80 {
81 clear(); 81 clear();
82 } 82 }
83 83
84 void RTCSessionDescriptionRequestImpl::clear() 84 void RTCSessionDescriptionRequestImpl::clear()
85 { 85 {
86 m_successCallback.clear(); 86 m_successCallback.clear();
87 m_errorCallback.clear(); 87 m_errorCallback.clear();
88 } 88 }
89 89
90 } // namespace WebCore 90 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/mediastream/RTCSessionDescriptionRequestImpl.h ('k') | Source/modules/mediastream/SourceInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698