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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 8 years 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 6 #define CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/browser/web_contents_delegate.h" 10 #include "content/public/browser/web_contents_delegate.h"
11 11
12 class PrefService; 12 class PrefServiceSyncable;
13 class Profile; 13 class Profile;
14 14
15 class MediaStreamDevicesController { 15 class MediaStreamDevicesController {
16 public: 16 public:
17 // TODO(xians): Use const content::MediaStreamRequest& instead of *. 17 // TODO(xians): Use const content::MediaStreamRequest& instead of *.
18 MediaStreamDevicesController(Profile* profile, 18 MediaStreamDevicesController(Profile* profile,
19 const content::MediaStreamRequest* request, 19 const content::MediaStreamRequest* request,
20 const content::MediaResponseCallback& callback); 20 const content::MediaResponseCallback& callback);
21 21
22 virtual ~MediaStreamDevicesController(); 22 virtual ~MediaStreamDevicesController();
23 23
24 // Registers the prefs backing the audio and video policies. 24 // Registers the prefs backing the audio and video policies.
25 static void RegisterUserPrefs(PrefService* prefs); 25 static void RegisterUserPrefs(PrefServiceSyncable* prefs);
26 26
27 // Public method to be called before creating the MediaStreamInfoBarDelegate. 27 // Public method to be called before creating the MediaStreamInfoBarDelegate.
28 // This function will check the content settings exceptions and take the 28 // This function will check the content settings exceptions and take the
29 // corresponding action on exception which matches the request. 29 // corresponding action on exception which matches the request.
30 bool DismissInfoBarAndTakeActionOnSettings(); 30 bool DismissInfoBarAndTakeActionOnSettings();
31 31
32 // Public methods to be called by MediaStreamInfoBarDelegate; 32 // Public methods to be called by MediaStreamInfoBarDelegate;
33 bool has_audio() const { return has_audio_; } 33 bool has_audio() const { return has_audio_; }
34 bool has_video() const { return has_video_; } 34 bool has_video() const { return has_video_; }
35 const std::string& GetSecurityOriginSpec() const; 35 const std::string& GetSecurityOriginSpec() const;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // The callback that needs to be Run to notify WebRTC of whether access to 78 // The callback that needs to be Run to notify WebRTC of whether access to
79 // audio/video devices was granted or not. 79 // audio/video devices was granted or not.
80 content::MediaResponseCallback callback_; 80 content::MediaResponseCallback callback_;
81 81
82 bool has_audio_; 82 bool has_audio_;
83 bool has_video_; 83 bool has_video_;
84 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController); 84 DISALLOW_COPY_AND_ASSIGN(MediaStreamDevicesController);
85 }; 85 };
86 86
87 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_ 87 #endif // CHROME_BROWSER_MEDIA_MEDIA_STREAM_DEVICES_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/media_capture_devices_dispatcher.cc ('k') | chrome/browser/media/media_stream_devices_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698