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

Side by Side Diff: third_party/WebKit/Source/web/UserMediaClientImpl.cpp

Issue 2877363002: Move more classes over to use WebLocalFrameBase instead of WebLocalFrameImpl. (Closed)
Patch Set: Created 3 years, 7 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #include "web/UserMediaClientImpl.h" 31 #include "web/UserMediaClientImpl.h"
32 32
33 #include "platform/wtf/RefPtr.h" 33 #include "platform/wtf/RefPtr.h"
34 #include "public/web/WebFrameClient.h" 34 #include "public/web/WebFrameClient.h"
35 #include "public/web/WebMediaDeviceChangeObserver.h" 35 #include "public/web/WebMediaDeviceChangeObserver.h"
36 #include "public/web/WebMediaDevicesRequest.h" 36 #include "public/web/WebMediaDevicesRequest.h"
37 #include "public/web/WebUserMediaClient.h" 37 #include "public/web/WebUserMediaClient.h"
38 #include "public/web/WebUserMediaRequest.h" 38 #include "public/web/WebUserMediaRequest.h"
39 #include "web/WebLocalFrameImpl.h"
40 39
41 namespace blink { 40 namespace blink {
42 41
43 UserMediaClientImpl::UserMediaClientImpl(WebUserMediaClient* client) 42 UserMediaClientImpl::UserMediaClientImpl(WebUserMediaClient* client)
44 : client_(client) {} 43 : client_(client) {}
45 44
46 void UserMediaClientImpl::RequestUserMedia(UserMediaRequest* request) { 45 void UserMediaClientImpl::RequestUserMedia(UserMediaRequest* request) {
47 if (client_) 46 if (client_)
48 client_->RequestUserMedia(request); 47 client_->RequestUserMedia(request);
49 } 48 }
50 49
51 void UserMediaClientImpl::CancelUserMediaRequest(UserMediaRequest* request) { 50 void UserMediaClientImpl::CancelUserMediaRequest(UserMediaRequest* request) {
52 if (client_) 51 if (client_)
53 client_->CancelUserMediaRequest(WebUserMediaRequest(request)); 52 client_->CancelUserMediaRequest(WebUserMediaRequest(request));
54 } 53 }
55 54
56 void UserMediaClientImpl::RequestMediaDevices(MediaDevicesRequest* request) { 55 void UserMediaClientImpl::RequestMediaDevices(MediaDevicesRequest* request) {
57 if (client_) 56 if (client_)
58 client_->RequestMediaDevices(request); 57 client_->RequestMediaDevices(request);
59 } 58 }
60 59
61 void UserMediaClientImpl::SetMediaDeviceChangeObserver(MediaDevices* observer) { 60 void UserMediaClientImpl::SetMediaDeviceChangeObserver(MediaDevices* observer) {
62 if (client_) 61 if (client_)
63 client_->SetMediaDeviceChangeObserver( 62 client_->SetMediaDeviceChangeObserver(
64 WebMediaDeviceChangeObserver(observer)); 63 WebMediaDeviceChangeObserver(observer));
65 } 64 }
66 65
67 } // namespace blink 66 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/TextCheckerClientImpl.cpp ('k') | third_party/WebKit/Source/web/WebHelperPluginImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698