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

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

Issue 2458453002: [sensors] Add Permission guard to the generic sensor apis.
Patch Set: rebase + blink reformat Created 3 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
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 MicrophoneCameraState new_microphone_camera_state, 349 MicrophoneCameraState new_microphone_camera_state,
350 const std::string& media_stream_selected_audio_device, 350 const std::string& media_stream_selected_audio_device,
351 const std::string& media_stream_selected_video_device, 351 const std::string& media_stream_selected_video_device,
352 const std::string& media_stream_requested_audio_device, 352 const std::string& media_stream_requested_audio_device,
353 const std::string& media_stream_requested_video_device); 353 const std::string& media_stream_requested_video_device);
354 354
355 // There methods are called to update the status about MIDI access. 355 // There methods are called to update the status about MIDI access.
356 void OnMidiSysExAccessed(const GURL& reqesting_origin); 356 void OnMidiSysExAccessed(const GURL& reqesting_origin);
357 void OnMidiSysExAccessBlocked(const GURL& requesting_origin); 357 void OnMidiSysExAccessBlocked(const GURL& requesting_origin);
358 358
359 // There methods are called to update the status about Sensor access.
360 void OnSensorAccessed(const GURL& reqesting_origin);
361 void OnSensorAccessBlocked(const GURL& requesting_origin);
362
359 // Adds the given |SiteDataObserver|. The |observer| is notified when a 363 // Adds the given |SiteDataObserver|. The |observer| is notified when a
360 // locale shared object, like for example a cookie, is accessed. 364 // locale shared object, like for example a cookie, is accessed.
361 void AddSiteDataObserver(SiteDataObserver* observer); 365 void AddSiteDataObserver(SiteDataObserver* observer);
362 366
363 // Removes the given |SiteDataObserver|. 367 // Removes the given |SiteDataObserver|.
364 void RemoveSiteDataObserver(SiteDataObserver* observer); 368 void RemoveSiteDataObserver(SiteDataObserver* observer);
365 369
366 // Block all content. Used for testing content setting bubbles. 370 // Block all content. Used for testing content setting bubbles.
367 void BlockAllContentForTesting(); 371 void BlockAllContentForTesting();
368 372
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 // Holds the previous committed url during a navigation. 469 // Holds the previous committed url during a navigation.
466 GURL previous_url_; 470 GURL previous_url_;
467 471
468 // Observer to watch for content settings changed. 472 // Observer to watch for content settings changed.
469 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_; 473 ScopedObserver<HostContentSettingsMap, content_settings::Observer> observer_;
470 474
471 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 475 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
472 }; 476 };
473 477
474 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 478 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/resource_id.h ('k') | chrome/browser/content_settings/tab_specific_content_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698