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

Side by Side Diff: chrome/browser/content_settings/tab_specific_content_settings.h

Issue 678023002: TabSpecificContentSettings no longer knows about MediaStreamDeviceController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win complilation error C4800 Created 6 years, 1 month 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 // 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_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 6 #define CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "base/scoped_observer.h" 14 #include "base/scoped_observer.h"
15 #include "chrome/browser/browsing_data/cookies_tree_model.h" 15 #include "chrome/browser/browsing_data/cookies_tree_model.h"
16 #include "chrome/browser/content_settings/content_settings_usages_state.h" 16 #include "chrome/browser/content_settings/content_settings_usages_state.h"
17 #include "chrome/browser/content_settings/local_shared_objects_container.h" 17 #include "chrome/browser/content_settings/local_shared_objects_container.h"
18 #include "chrome/browser/media/media_stream_devices_controller.h"
19 #include "chrome/common/custom_handlers/protocol_handler.h" 18 #include "chrome/common/custom_handlers/protocol_handler.h"
20 #include "components/content_settings/core/browser/content_settings_observer.h" 19 #include "components/content_settings/core/browser/content_settings_observer.h"
21 #include "components/content_settings/core/common/content_settings.h" 20 #include "components/content_settings/core/common/content_settings.h"
22 #include "components/content_settings/core/common/content_settings_types.h" 21 #include "components/content_settings/core/common/content_settings_types.h"
23 #include "content/public/browser/web_contents_observer.h" 22 #include "content/public/browser/web_contents_observer.h"
24 #include "content/public/browser/web_contents_user_data.h" 23 #include "content/public/browser/web_contents_user_data.h"
25 #include "content/public/common/media_stream_request.h"
26 #include "net/cookies/canonical_cookie.h" 24 #include "net/cookies/canonical_cookie.h"
27 25
28 class HostContentSettingsMap; 26 class HostContentSettingsMap;
29 class Profile; 27 class Profile;
30 28
31 namespace content { 29 namespace content {
32 class RenderViewHost; 30 class RenderViewHost;
33 } 31 }
34 32
35 namespace net { 33 namespace net {
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 const base::string16& display_name, 343 const base::string16& display_name,
346 bool blocked_by_policy); 344 bool blocked_by_policy);
347 void OnGeolocationPermissionSet(const GURL& requesting_frame, 345 void OnGeolocationPermissionSet(const GURL& requesting_frame,
348 bool allowed); 346 bool allowed);
349 #if defined(OS_ANDROID) 347 #if defined(OS_ANDROID)
350 void OnProtectedMediaIdentifierPermissionSet(const GURL& requesting_frame, 348 void OnProtectedMediaIdentifierPermissionSet(const GURL& requesting_frame,
351 bool allowed); 349 bool allowed);
352 #endif 350 #endif
353 351
354 // This method is called to update the status about the microphone and 352 // This method is called to update the status about the microphone and
355 // camera stream access. |request_permissions| contains a list of requested 353 // camera stream access.
356 // media stream types and the permission for each type.
357 void OnMediaStreamPermissionSet( 354 void OnMediaStreamPermissionSet(
358 const GURL& request_origin, 355 const GURL& request_origin,
359 const MediaStreamDevicesController::MediaStreamTypeSettingsMap& 356 MicrophoneCameraState new_microphone_camera_state,
360 request_permissions); 357 const std::string& media_stream_selected_audio_device,
358 const std::string& media_stream_selected_video_device,
359 const std::string& media_stream_requested_audio_device,
360 const std::string& media_stream_requested_video_device);
361 361
362 // There methods are called to update the status about MIDI access. 362 // There methods are called to update the status about MIDI access.
363 void OnMidiSysExAccessed(const GURL& reqesting_origin); 363 void OnMidiSysExAccessed(const GURL& reqesting_origin);
364 void OnMidiSysExAccessBlocked(const GURL& requesting_origin); 364 void OnMidiSysExAccessBlocked(const GURL& requesting_origin);
365 365
366 // Adds the given |SiteDataObserver|. The |observer| is notified when a 366 // Adds the given |SiteDataObserver|. The |observer| is notified when a
367 // locale shared object, like for example a cookie, is accessed. 367 // locale shared object, like for example a cookie, is accessed.
368 void AddSiteDataObserver(SiteDataObserver* observer); 368 void AddSiteDataObserver(SiteDataObserver* observer);
369 369
370 // Removes the given |SiteDataObserver|. 370 // Removes the given |SiteDataObserver|.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 std::string media_stream_requested_audio_device_; 443 std::string media_stream_requested_audio_device_;
444 std::string media_stream_requested_video_device_; 444 std::string media_stream_requested_video_device_;
445 445
446 // Observer to watch for content settings changed. 446 // Observer to watch for content settings changed.
447 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 447 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
448 448
449 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 449 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
450 }; 450 };
451 451
452 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 452 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698