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

Side by Side Diff: chrome/browser/media/regular_media_access_handler.h

Issue 1095393004: Refactor: Make MediaCaptureDevicesDispatcher have pluggable handlers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
(Empty)
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_MEDIA_REGULAR_MEDIA_ACCESS_HANDLER_H_
6 #define CHROME_BROWSER_MEDIA_REGULAR_MEDIA_ACCESS_HANDLER_H_
7
8 #include "chrome/browser/media/media_access_handler.h"
9
10 class RegularMediaAccessHandler : public MediaAccessHandler {
Sergey Ulanov 2015/04/24 22:43:51 This name is not very descriptive. Maybe call it P
changbin 2015/04/29 05:24:34 Done.
11 public:
12 explicit RegularMediaAccessHandler(RequestsQueues& requests);
13 ~RegularMediaAccessHandler() override;
14
15 void HandleRequest(content::WebContents* web_contents,
16 const content::MediaStreamRequest& request,
17 const content::MediaResponseCallback& callback,
18 const extensions::Extension* extension) override;
19
20 private:
21 void ProcessQueuedAccessRequest(content::WebContents* web_contents);
22 void OnAccessRequestResponse(content::WebContents* web_contents,
23 const content::MediaStreamDevices& devices,
24 content::MediaStreamRequestResult result,
25 scoped_ptr<content::MediaStreamUI> ui);
26
27 RequestsQueues pending_requests_;
28 };
29
30 #endif // CHROME_BROWSER_MEDIA_REGULAR_MEDIA_ACCESS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698