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

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

Issue 106713004: Remove kEnableResourceContentSettings and all the code that uses it since it's been behind a flag f… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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_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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 int64 parent_frame_id, 287 int64 parent_frame_id,
288 bool is_main_frame, 288 bool is_main_frame,
289 const GURL& validated_url, 289 const GURL& validated_url,
290 bool is_error_page, 290 bool is_error_page,
291 bool is_iframe_srcdoc, 291 bool is_iframe_srcdoc,
292 content::RenderViewHost* render_view_host) OVERRIDE; 292 content::RenderViewHost* render_view_host) OVERRIDE;
293 virtual void AppCacheAccessed(const GURL& manifest_url, 293 virtual void AppCacheAccessed(const GURL& manifest_url,
294 bool blocked_by_policy) OVERRIDE; 294 bool blocked_by_policy) OVERRIDE;
295 295
296 // Message handlers. Public for testing. 296 // Message handlers. Public for testing.
297 void OnContentBlocked(ContentSettingsType type, 297 void OnContentBlocked(ContentSettingsType type);
298 const std::string& resource_identifier);
Bernhard Bauer 2013/12/10 23:14:05 I'm wondering if we should keep the resource ident
jam 2013/12/11 00:15:38 my philosophy is if we want to expose it, let's ad
299 void OnContentAllowed(ContentSettingsType type); 298 void OnContentAllowed(ContentSettingsType type);
300 299
301 // These methods are invoked on the UI thread by the static functions above. 300 // These methods are invoked on the UI thread by the static functions above.
302 // Public for testing. 301 // Public for testing.
303 void OnCookiesRead(const GURL& url, 302 void OnCookiesRead(const GURL& url,
304 const GURL& first_party_url, 303 const GURL& first_party_url,
305 const net::CookieList& cookie_list, 304 const net::CookieList& cookie_list,
306 bool blocked_by_policy); 305 bool blocked_by_policy);
307 void OnCookieChanged(const GURL& url, 306 void OnCookieChanged(const GURL& url,
308 const GURL& first_party_url, 307 const GURL& first_party_url,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // locale shared object, like for example a cookie, is accessed. 343 // locale shared object, like for example a cookie, is accessed.
345 void AddSiteDataObserver(SiteDataObserver* observer); 344 void AddSiteDataObserver(SiteDataObserver* observer);
346 345
347 // Removes the given |SiteDataObserver|. 346 // Removes the given |SiteDataObserver|.
348 void RemoveSiteDataObserver(SiteDataObserver* observer); 347 void RemoveSiteDataObserver(SiteDataObserver* observer);
349 348
350 private: 349 private:
351 explicit TabSpecificContentSettings(content::WebContents* tab); 350 explicit TabSpecificContentSettings(content::WebContents* tab);
352 friend class content::WebContentsUserData<TabSpecificContentSettings>; 351 friend class content::WebContentsUserData<TabSpecificContentSettings>;
353 352
354 void AddBlockedResource(ContentSettingsType content_type,
355 const std::string& resource_identifier);
356
357 // content::NotificationObserver implementation. 353 // content::NotificationObserver implementation.
358 virtual void Observe(int type, 354 virtual void Observe(int type,
359 const content::NotificationSource& source, 355 const content::NotificationSource& source,
360 const content::NotificationDetails& details) OVERRIDE; 356 const content::NotificationDetails& details) OVERRIDE;
361 357
362 // Notifies all registered |SiteDataObserver|s. 358 // Notifies all registered |SiteDataObserver|s.
363 void NotifySiteDataObservers(); 359 void NotifySiteDataObservers();
364 360
365 // All currently registered |SiteDataObserver|s. 361 // All currently registered |SiteDataObserver|s.
366 ObserverList<SiteDataObserver> observer_list_; 362 ObserverList<SiteDataObserver> observer_list_;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 415
420 // The devices to be displayed in the media bubble when the media stream 416 // The devices to be displayed in the media bubble when the media stream
421 // request is requesting certain specific devices. 417 // request is requesting certain specific devices.
422 std::string media_stream_requested_audio_device_; 418 std::string media_stream_requested_audio_device_;
423 std::string media_stream_requested_video_device_; 419 std::string media_stream_requested_video_device_;
424 420
425 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings); 421 DISALLOW_COPY_AND_ASSIGN(TabSpecificContentSettings);
426 }; 422 };
427 423
428 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_ 424 #endif // CHROME_BROWSER_CONTENT_SETTINGS_TAB_SPECIFIC_CONTENT_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698