Chromium Code Reviews| 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 aeff22800aefc5cfeb9ead29be0221ed22e7d5f7..1d98cf918308c89a36208ee36d0114dc7db455ae 100644 |
| --- a/chrome/browser/content_settings/tab_specific_content_settings.h |
| +++ b/chrome/browser/content_settings/tab_specific_content_settings.h |
| @@ -12,6 +12,7 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "base/observer_list.h" |
| #include "base/scoped_observer.h" |
| +#include "chrome/browser/browsing_data/cookies_tree_model.h" |
| #include "chrome/browser/content_settings/content_settings_usages_state.h" |
| #include "chrome/browser/content_settings/local_shared_objects_container.h" |
| #include "chrome/browser/media/media_stream_devices_controller.h" |
| @@ -24,7 +25,6 @@ |
| #include "content/public/common/media_stream_request.h" |
| #include "net/cookies/canonical_cookie.h" |
| -class CookiesTreeModel; |
| class HostContentSettingsMap; |
| class Profile; |
| @@ -259,19 +259,25 @@ class TabSpecificContentSettings |
| return pending_protocol_handler_setting_; |
| } |
| - |
| - // Returns a pointer to the |LocalSharedObjectsContainer| that contains all |
| - // allowed local shared objects like cookies, local storage, ... . |
| - const LocalSharedObjectsContainer& allowed_local_shared_objects() const { |
| + // Returns the |LocalSharedObjectsCounter| instances corresponding to all |
| + // allowed, and blocked, respectively, local shared objects like cookies, |
| + // local storage, ... . |
| + const LocalSharedObjectsCounter& allowed_local_shared_objects() const { |
| return allowed_local_shared_objects_; |
| } |
| - |
| - // Returns a pointer to the |LocalSharedObjectsContainer| that contains all |
| - // blocked local shared objects like cookies, local storage, ... . |
| - const LocalSharedObjectsContainer& blocked_local_shared_objects() const { |
| + const LocalSharedObjectsCounter& blocked_local_shared_objects() const { |
|
markusheintz_
2014/10/01 11:12:07
nit: pls add an empty line above
vabr (Chromium)
2014/10/01 15:25:48
Done.
|
| return blocked_local_shared_objects_; |
| } |
| + // Creates a new copy of a CookiesTreeModel for all allowed, and blocked, |
| + // respectively, local shared objects. |
| + scoped_ptr<CookiesTreeModel> CreateAllowedCookiesTreeModel() const { |
| + return allowed_local_shared_objects_.CreateCookiesTreeModel(); |
| + } |
| + scoped_ptr<CookiesTreeModel> CreateBlockedCookiesTreeModel() const { |
|
markusheintz_
2014/10/01 11:12:07
nit: pls add an empty line above
vabr (Chromium)
2014/10/01 15:25:48
Done.
|
| + return blocked_local_shared_objects_.CreateCookiesTreeModel(); |
| + } |
| + |
| bool load_plugins_link_enabled() { return load_plugins_link_enabled_; } |
| void set_load_plugins_link_enabled(bool enabled) { |
| load_plugins_link_enabled_ = enabled; |