Index: chrome/browser/content_settings/tab_specific_content_settings.h |
diff --git a/chrome/browser/content_settings/tab_specific_content_settings.h b/chrome/browser/content_settings/tab_specific_content_settings.h |
index 1cd31476f1329d4115081d46327da69d063c4f41..072b9dacd48b648edcd02cbe41d0fc5bfa79d82f 100644 |
--- a/chrome/browser/content_settings/tab_specific_content_settings.h |
+++ b/chrome/browser/content_settings/tab_specific_content_settings.h |
@@ -159,6 +159,9 @@ class TabSpecificContentSettings |
// Clears the Geolocation settings. |
void ClearGeolocationContentSettings(); |
+ // Clears the MIDI settings. |
+ void ClearMIDIContentSettings(); |
+ |
// Changes the |content_blocked_| entry for popups. |
void SetPopupsBlocked(bool blocked); |
@@ -169,6 +172,9 @@ class TabSpecificContentSettings |
void GeolocationDidNavigate( |
const content::LoadCommittedDetails& details); |
+ // Updates MIDI settings on navigation. |
+ void MIDIDidNavigate(const content::LoadCommittedDetails& details); |
+ |
// Returns whether a particular kind of content has been blocked for this |
// page. |
bool IsContentBlocked(ContentSettingsType content_type) const; |
@@ -194,6 +200,12 @@ class TabSpecificContentSettings |
return geolocation_usages_state_; |
} |
+ // Returns the ContentSettingsUsageState that controls the MIDI usage on |
+ // this page. |
+ const ContentSettingsUsagesState& midi_usages_state() const { |
+ return midi_usages_state_; |
+ } |
+ |
// Call to indicate that there is a protocol handler pending user approval. |
void set_pending_protocol_handler(const ProtocolHandler& handler) { |
pending_protocol_handler_ = handler; |
@@ -298,7 +310,6 @@ class TabSpecificContentSettings |
void OnGeolocationPermissionSet(const GURL& requesting_frame, |
bool allowed); |
- |
// These methods are called to update the status about the microphone and |
// camera stream access. |
void OnMicrophoneAccessed(); |
@@ -306,6 +317,10 @@ class TabSpecificContentSettings |
void OnCameraAccessed(); |
void OnCameraAccessBlocked(); |
+ // There methods are called to update the status about MIDI access. |
+ void OnMIDISysExAccessed(const GURL& reqesting_origin); |
+ void OnMIDISysExAccessBlocked(const GURL& requesting_origin); |
+ |
// Adds the given |SiteDataObserver|. The |observer| is notified when a |
// locale shared object, like for example a cookie, is accessed. |
void AddSiteDataObserver(SiteDataObserver* observer); |
@@ -355,6 +370,9 @@ class TabSpecificContentSettings |
// Manages information about Geolocation API usage in this page. |
ContentSettingsUsagesState geolocation_usages_state_; |
+ // Manages information about MIDI usages in this page. |
+ ContentSettingsUsagesState midi_usages_state_; |
+ |
// The pending protocol handler, if any. This can be set if |
// registerProtocolHandler was invoked without user gesture. |
// The |IsEmpty| method will be true if no protocol handler is |