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

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

Issue 173363002: Move mediastream module to oilpan transition types (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added Finalized Created 6 years, 10 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 | 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 * 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 22 matching lines...) Expand all
33 33
34 class MediaDevicesRequest; 34 class MediaDevicesRequest;
35 class UserMediaRequest; 35 class UserMediaRequest;
36 36
37 class UserMediaController FINAL : public Supplement<Page> { 37 class UserMediaController FINAL : public Supplement<Page> {
38 public: 38 public:
39 virtual ~UserMediaController(); 39 virtual ~UserMediaController();
40 40
41 UserMediaClient* client() const { return m_client; } 41 UserMediaClient* client() const { return m_client; }
42 42
43 void requestUserMedia(PassRefPtr<UserMediaRequest>); 43 void requestUserMedia(PassRefPtrWillBeRawPtr<UserMediaRequest>);
44 void cancelUserMediaRequest(UserMediaRequest*); 44 void cancelUserMediaRequest(UserMediaRequest*);
45 45
46 void requestMediaDevices(PassRefPtr<MediaDevicesRequest>); 46 void requestMediaDevices(PassRefPtrWillBeRawPtr<MediaDevicesRequest>);
47 void cancelMediaDevicesRequest(MediaDevicesRequest*); 47 void cancelMediaDevicesRequest(MediaDevicesRequest*);
48 48
49 static PassOwnPtr<UserMediaController> create(UserMediaClient*); 49 static PassOwnPtr<UserMediaController> create(UserMediaClient*);
50 static const char* supplementName(); 50 static const char* supplementName();
51 static UserMediaController* from(Page* page) { return static_cast<UserMediaC ontroller*>(Supplement<Page>::from(page, supplementName())); } 51 static UserMediaController* from(Page* page) { return static_cast<UserMediaC ontroller*>(Supplement<Page>::from(page, supplementName())); }
52 52
53 protected: 53 protected:
54 explicit UserMediaController(UserMediaClient*); 54 explicit UserMediaController(UserMediaClient*);
55 55
56 private: 56 private:
57 UserMediaClient* m_client; 57 UserMediaClient* m_client;
58 }; 58 };
59 59
60 inline void UserMediaController::requestUserMedia(PassRefPtr<UserMediaRequest> r equest) 60 inline void UserMediaController::requestUserMedia(PassRefPtrWillBeRawPtr<UserMed iaRequest> request)
61 { 61 {
62 m_client->requestUserMedia(request); 62 m_client->requestUserMedia(request);
63 } 63 }
64 64
65 inline void UserMediaController::cancelUserMediaRequest(UserMediaRequest* reques t) 65 inline void UserMediaController::cancelUserMediaRequest(UserMediaRequest* reques t)
66 { 66 {
67 m_client->cancelUserMediaRequest(request); 67 m_client->cancelUserMediaRequest(request);
68 } 68 }
69 69
70 inline void UserMediaController::requestMediaDevices(PassRefPtr<MediaDevicesRequ est> request) 70 inline void UserMediaController::requestMediaDevices(PassRefPtrWillBeRawPtr<Medi aDevicesRequest> request)
71 { 71 {
72 m_client->requestMediaDevices(request); 72 m_client->requestMediaDevices(request);
73 } 73 }
74 74
75 inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest* request) 75 inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest* request)
76 { 76 {
77 m_client->cancelMediaDevicesRequest(request); 77 m_client->cancelMediaDevicesRequest(request);
78 } 78 }
79 79
80 } // namespace WebCore 80 } // namespace WebCore
81 81
82 #endif // UserMediaController_h 82 #endif // UserMediaController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698