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

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

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 Created 6 years, 10 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 | 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_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"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // CONTENT_SETTINGS_TYPE_COOKIES related information. 158 // CONTENT_SETTINGS_TYPE_COOKIES related information.
159 void ClearBlockedContentSettingsExceptForCookies(); 159 void ClearBlockedContentSettingsExceptForCookies();
160 160
161 // Resets all cookies related information. 161 // Resets all cookies related information.
162 void ClearCookieSpecificContentSettings(); 162 void ClearCookieSpecificContentSettings();
163 163
164 // Clears the Geolocation settings. 164 // Clears the Geolocation settings.
165 void ClearGeolocationContentSettings(); 165 void ClearGeolocationContentSettings();
166 166
167 // Clears the MIDI settings. 167 // Clears the MIDI settings.
168 void ClearMIDIContentSettings(); 168 void ClearMidiContentSettings();
169 169
170 // Changes the |content_blocked_| entry for popups. 170 // Changes the |content_blocked_| entry for popups.
171 void SetPopupsBlocked(bool blocked); 171 void SetPopupsBlocked(bool blocked);
172 172
173 // Changes the |content_blocked_| entry for downloads. 173 // Changes the |content_blocked_| entry for downloads.
174 void SetDownloadsBlocked(bool blocked); 174 void SetDownloadsBlocked(bool blocked);
175 175
176 // Updates Geolocation settings on navigation. 176 // Updates Geolocation settings on navigation.
177 void GeolocationDidNavigate( 177 void GeolocationDidNavigate(
178 const content::LoadCommittedDetails& details); 178 const content::LoadCommittedDetails& details);
179 179
180 // Updates MIDI settings on navigation. 180 // Updates MIDI settings on navigation.
181 void MIDIDidNavigate(const content::LoadCommittedDetails& details); 181 void MidiDidNavigate(const content::LoadCommittedDetails& details);
182 182
183 // Returns whether a particular kind of content has been blocked for this 183 // Returns whether a particular kind of content has been blocked for this
184 // page. 184 // page.
185 bool IsContentBlocked(ContentSettingsType content_type) const; 185 bool IsContentBlocked(ContentSettingsType content_type) const;
186 186
187 // Returns true if content blockage was indicated to the user. 187 // Returns true if content blockage was indicated to the user.
188 bool IsBlockageIndicated(ContentSettingsType content_type) const; 188 bool IsBlockageIndicated(ContentSettingsType content_type) const;
189 189
190 void SetBlockageHasBeenIndicated(ContentSettingsType content_type); 190 void SetBlockageHasBeenIndicated(ContentSettingsType content_type);
191 191
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 329
330 // This method is called to update the status about the microphone and 330 // This method is called to update the status about the microphone and
331 // camera stream access. |request_permissions| contains a list of requested 331 // camera stream access. |request_permissions| contains a list of requested
332 // media stream types and the permission for each type. 332 // media stream types and the permission for each type.
333 void OnMediaStreamPermissionSet( 333 void OnMediaStreamPermissionSet(
334 const GURL& request_origin, 334 const GURL& request_origin,
335 const MediaStreamDevicesController::MediaStreamTypeSettingsMap& 335 const MediaStreamDevicesController::MediaStreamTypeSettingsMap&
336 request_permissions); 336 request_permissions);
337 337
338 // There methods are called to update the status about MIDI access. 338 // There methods are called to update the status about MIDI access.
339 void OnMIDISysExAccessed(const GURL& reqesting_origin); 339 void OnMidiSysExAccessed(const GURL& reqesting_origin);
340 void OnMIDISysExAccessBlocked(const GURL& requesting_origin); 340 void OnMidiSysExAccessBlocked(const GURL& requesting_origin);
341 341
342 // Adds the given |SiteDataObserver|. The |observer| is notified when a 342 // Adds the given |SiteDataObserver|. The |observer| is notified when a
343 // locale shared object, like for example a cookie, is accessed. 343 // locale shared object, like for example a cookie, is accessed.
344 void AddSiteDataObserver(SiteDataObserver* observer); 344 void AddSiteDataObserver(SiteDataObserver* observer);
345 345
346 // Removes the given |SiteDataObserver|. 346 // Removes the given |SiteDataObserver|.
347 void RemoveSiteDataObserver(SiteDataObserver* observer); 347 void RemoveSiteDataObserver(SiteDataObserver* observer);
348 348
349 private: 349 private:
350 explicit TabSpecificContentSettings(content::WebContents* tab); 350 explicit TabSpecificContentSettings(content::WebContents* tab);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 410
411 // The devices to be displayed in the media bubble when the media stream 411 // The devices to be displayed in the media bubble when the media stream
412 // request is requesting certain specific devices. 412 // request is requesting certain specific devices.
413 std::string media_stream_requested_audio_device_; 413 std::string media_stream_requested_audio_device_;
414 std::string media_stream_requested_video_device_; 414 std::string media_stream_requested_video_device_;
415 415
416 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 416 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
417 }; 417 };
418 418
419 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 419 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698