| OLD | NEW |
| 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_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/sequenced_task_runner_helpers.h" | 13 #include "base/sequenced_task_runner_helpers.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/common/content_settings.h" | 15 #include "chrome/common/content_settings.h" |
| 16 #include "content/public/browser/browser_message_filter.h" | 16 #include "content/public/browser/browser_message_filter.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
| 18 | 18 |
| 19 class CookieSettings; | 19 class CookieSettings; |
| 20 struct ExtensionHostMsg_APIAction_Params; | 20 struct ExtensionHostMsg_APIActionOrEvent_Params; |
| 21 struct ExtensionHostMsg_DOMAction_Params; | 21 struct ExtensionHostMsg_DOMAction_Params; |
| 22 struct ExtensionHostMsg_Request_Params; | 22 struct ExtensionHostMsg_Request_Params; |
| 23 class ExtensionInfoMap; | 23 class ExtensionInfoMap; |
| 24 class GURL; | 24 class GURL; |
| 25 | 25 |
| 26 namespace nacl { | 26 namespace nacl { |
| 27 struct NaClLaunchParams; | 27 struct NaClLaunchParams; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace net { | 30 namespace net { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void OnExtensionRequestForIOThread( | 148 void OnExtensionRequestForIOThread( |
| 149 int routing_id, | 149 int routing_id, |
| 150 const ExtensionHostMsg_Request_Params& params); | 150 const ExtensionHostMsg_Request_Params& params); |
| 151 void OnExtensionShouldSuspendAck(const std::string& extension_id, | 151 void OnExtensionShouldSuspendAck(const std::string& extension_id, |
| 152 int sequence_id); | 152 int sequence_id); |
| 153 void OnExtensionSuspendAck(const std::string& extension_id); | 153 void OnExtensionSuspendAck(const std::string& extension_id); |
| 154 void OnExtensionGenerateUniqueID(int* unique_id); | 154 void OnExtensionGenerateUniqueID(int* unique_id); |
| 155 void OnExtensionResumeRequests(int route_id); | 155 void OnExtensionResumeRequests(int route_id); |
| 156 void OnAddAPIActionToExtensionActivityLog( | 156 void OnAddAPIActionToExtensionActivityLog( |
| 157 const std::string& extension_id, | 157 const std::string& extension_id, |
| 158 const ExtensionHostMsg_APIAction_Params& params); | 158 const ExtensionHostMsg_APIActionOrEvent_Params& params); |
| 159 void OnAddDOMActionToExtensionActivityLog( | 159 void OnAddDOMActionToExtensionActivityLog( |
| 160 const std::string& extension_id, | 160 const std::string& extension_id, |
| 161 const ExtensionHostMsg_DOMAction_Params& params); | 161 const ExtensionHostMsg_DOMAction_Params& params); |
| 162 void OnAddEventToExtensionActivityLog( |
| 163 const std::string& extension_id, |
| 164 const ExtensionHostMsg_APIActionOrEvent_Params& params); |
| 162 void OnAllowDatabase(int render_view_id, | 165 void OnAllowDatabase(int render_view_id, |
| 163 const GURL& origin_url, | 166 const GURL& origin_url, |
| 164 const GURL& top_origin_url, | 167 const GURL& top_origin_url, |
| 165 const string16& name, | 168 const string16& name, |
| 166 const string16& display_name, | 169 const string16& display_name, |
| 167 bool* allowed); | 170 bool* allowed); |
| 168 void OnAllowDOMStorage(int render_view_id, | 171 void OnAllowDOMStorage(int render_view_id, |
| 169 const GURL& origin_url, | 172 const GURL& origin_url, |
| 170 const GURL& top_origin_url, | 173 const GURL& top_origin_url, |
| 171 bool local, | 174 bool local, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 200 scoped_refptr<ExtensionInfoMap> extension_info_map_; | 203 scoped_refptr<ExtensionInfoMap> extension_info_map_; |
| 201 // Used to look up permissions at database creation time. | 204 // Used to look up permissions at database creation time. |
| 202 scoped_refptr<CookieSettings> cookie_settings_; | 205 scoped_refptr<CookieSettings> cookie_settings_; |
| 203 | 206 |
| 204 base::WeakPtrFactory<ChromeRenderMessageFilter> weak_ptr_factory_; | 207 base::WeakPtrFactory<ChromeRenderMessageFilter> weak_ptr_factory_; |
| 205 | 208 |
| 206 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); | 209 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); |
| 207 }; | 210 }; |
| 208 | 211 |
| 209 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 212 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |