| 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 063faa95fe36c2409d6d0d5dd24e9084cb363de0..c2fad0f1011a86ea4db28fa368c4d0b207d6bef0 100644
|
| --- a/chrome/browser/content_settings/tab_specific_content_settings.h
|
| +++ b/chrome/browser/content_settings/tab_specific_content_settings.h
|
| @@ -13,6 +13,7 @@
|
| #include "base/observer_list.h"
|
| #include "chrome/browser/content_settings/content_settings_usages_state.h"
|
| #include "chrome/browser/content_settings/local_shared_objects_container.h"
|
| +#include "chrome/browser/guest_view/web_view/web_view_guest.h"
|
| #include "chrome/browser/media/media_stream_devices_controller.h"
|
| #include "chrome/common/content_settings.h"
|
| #include "chrome/common/content_settings_types.h"
|
| @@ -28,6 +29,7 @@ class CookiesTreeModel;
|
| class Profile;
|
|
|
| namespace content {
|
| +class RenderFrameHost;
|
| class RenderViewHost;
|
| }
|
|
|
| @@ -159,6 +161,33 @@ class TabSpecificContentSettings
|
| const GURL& url,
|
| bool blocked_by_policy);
|
|
|
| + // Called when a specific file system in the current page was accessed.
|
| + // If access was blocked due to the user's content settings,
|
| + // |blocked_by_policy| should be true, and this function should invoke
|
| + // OnContentBlocked.
|
| + static void FileSystemAccessedSyncDelayReply(int render_process_id,
|
| + int render_frame_id,
|
| + const GURL& url,
|
| + IPC::Message* reply_msg,
|
| + bool blocked_by_policy);
|
| +
|
| + // Called when a specific file system in the current page was accessed.
|
| + // If access was blocked due to the user's content settings,
|
| + // |blocked_by_policy| should be true, and this function should invoke
|
| + // OnContentBlocked.
|
| + static void FileSystemAccessedAsync(int render_process_id,
|
| + int render_frame_id,
|
| + int request_id,
|
| + const GURL& url,
|
| + bool blocked_by_policy);
|
| +
|
| + static void UpdateSettingsOnFileSystemAccessedDelayReply(
|
| + int render_process_id,
|
| + int render_frame_id,
|
| + const GURL& url,
|
| + IPC::Message* message,
|
| + bool blocked_by_policy);
|
| +
|
| // Resets the |content_blocked_| and |content_allowed_| arrays, except for
|
| // CONTENT_SETTINGS_TYPE_COOKIES related information.
|
| void ClearBlockedContentSettingsExceptForCookies();
|
| @@ -365,6 +394,24 @@ class TabSpecificContentSettings
|
| // Notifies all registered |SiteDataObserver|s.
|
| void NotifySiteDataObservers();
|
|
|
| + static void FileSystemAccessedInternal(int render_process_id,
|
| + int render_frame_id,
|
| + int request_id,
|
| + const GURL& url,
|
| + bool blocked_by_policy);
|
| + static WebViewGuest* GetWebViewGuest(
|
| + content::RenderFrameHost* render_frame_host);
|
| + static void FileSystemAccessedAsyncInternal(int render_process_id,
|
| + int render_frame_id,
|
| + int request_id,
|
| + const GURL& url,
|
| + bool blocked_by_policy);
|
| + static void SendMessage(int render_process_id,
|
| + int render_frame_id,
|
| + int request_id,
|
| + const GURL& url,
|
| + bool blocked_by_policy);
|
| +
|
| // All currently registered |SiteDataObserver|s.
|
| ObserverList<SiteDataObserver> observer_list_;
|
|
|
|
|