| Index: chrome/browser/content_settings/host_content_settings_map.h
|
| diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h
|
| index cc7150a8edcc11c2810b1b09453a947586cbeced..e4e370f2005714225c82ad63ff3907092bf93e3b 100644
|
| --- a/chrome/browser/content_settings/host_content_settings_map.h
|
| +++ b/chrome/browser/content_settings/host_content_settings_map.h
|
| @@ -17,6 +17,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/memory/linked_ptr.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/values.h"
|
| #include "base/synchronization/lock.h"
|
| #include "chrome/browser/content_settings/content_settings_pattern.h"
|
| #include "chrome/browser/content_settings/content_settings_observer.h"
|
| @@ -79,6 +80,19 @@ class HostContentSettingsMap
|
| ContentSettingsType content_type,
|
| const std::string& resource_identifier) const;
|
|
|
| + // Returns a content setting |Value| which applies to the given URLs. Note
|
| + // that certain internal schemes are whitelisted. For ContentSettingsTypes
|
| + // that require a resource identifier to be specified, the
|
| + // |resource_identifier| must be non-empty. Ownership of the returned |Value|
|
| + // is transfered to the caller.
|
| + //
|
| + // This may be called on any thread.
|
| + Value* GetContentSettingValue(
|
| + const GURL& primary_url,
|
| + const GURL& secondary_url,
|
| + ContentSettingsType content_type,
|
| + const std::string& resource_identifier) const;
|
| +
|
| // Gets the content setting for cookies. This takes the third party cookie
|
| // flag into account, and therefore needs to know whether we read or write a
|
| // cookie.
|
|
|