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

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: Created 6 years, 8 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 virtual void trace(Visitor*) OVERRIDE { } 53 virtual void trace(Visitor*) OVERRIDE { }
54 54
55 protected: 55 protected:
56 explicit UserMediaController(UserMediaClient*); 56 explicit UserMediaController(UserMediaClient*);
57 57
58 private: 58 private:
59 UserMediaClient* m_client; 59 UserMediaClient* m_client;
60 }; 60 };
61 61
62 inline void UserMediaController::requestUserMedia(PassRefPtr<UserMediaRequest> r equest) 62 inline void UserMediaController::requestUserMedia(PassRefPtrWillBeRawPtr<UserMed iaRequest> request)
63 { 63 {
64 m_client->requestUserMedia(request); 64 m_client->requestUserMedia(request);
65 } 65 }
66 66
67 inline void UserMediaController::cancelUserMediaRequest(UserMediaRequest* reques t) 67 inline void UserMediaController::cancelUserMediaRequest(UserMediaRequest* reques t)
68 { 68 {
69 m_client->cancelUserMediaRequest(request); 69 m_client->cancelUserMediaRequest(request);
70 } 70 }
71 71
72 inline void UserMediaController::requestMediaDevices(PassRefPtr<MediaDevicesRequ est> request) 72 inline void UserMediaController::requestMediaDevices(PassRefPtrWillBeRawPtr<Medi aDevicesRequest> request)
73 { 73 {
74 m_client->requestMediaDevices(request); 74 m_client->requestMediaDevices(request);
75 } 75 }
76 76
77 inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest* request) 77 inline void UserMediaController::cancelMediaDevicesRequest(MediaDevicesRequest* request)
78 { 78 {
79 m_client->cancelMediaDevicesRequest(request); 79 m_client->cancelMediaDevicesRequest(request);
80 } 80 }
81 81
82 } // namespace WebCore 82 } // namespace WebCore
83 83
84 #endif // UserMediaController_h 84 #endif // UserMediaController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698