| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/common/content_settings.h" | 9 #include "chrome/common/content_settings.h" |
| 10 #include "chrome/browser/prefs/pref_member.h" | 10 #include "chrome/browser/prefs/pref_member.h" |
| 11 #include "content/browser/browser_message_filter.h" | 11 #include "content/browser/browser_message_filter.h" |
| 12 #include "content/common/dom_storage_common.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" | 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCache.h" |
| 13 | 14 |
| 14 class FilePath; | 15 class FilePath; |
| 16 class GURL; |
| 15 class HostContentSettingsMap; | 17 class HostContentSettingsMap; |
| 16 class Profile; | 18 class Profile; |
| 17 | 19 |
| 18 namespace net { | 20 namespace net { |
| 19 class URLRequestContextGetter; | 21 class URLRequestContextGetter; |
| 20 } | 22 } |
| 21 | 23 |
| 22 // This class filters out incoming Chrome-specific IPC messages for the renderer | 24 // This class filters out incoming Chrome-specific IPC messages for the renderer |
| 23 // process on the IPC thread. | 25 // process on the IPC thread. |
| 24 class ChromeRenderMessageFilter : public BrowserMessageFilter { | 26 class ChromeRenderMessageFilter : public BrowserMessageFilter { |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 #if defined(USE_TCMALLOC) | 82 #if defined(USE_TCMALLOC) |
| 81 void OnRendererTcmalloc(base::ProcessId pid, const std::string& output); | 83 void OnRendererTcmalloc(base::ProcessId pid, const std::string& output); |
| 82 #endif | 84 #endif |
| 83 void OnGetPluginPolicies(ContentSetting* outdated_policy, | 85 void OnGetPluginPolicies(ContentSetting* outdated_policy, |
| 84 ContentSetting* authorize_policy); | 86 ContentSetting* authorize_policy); |
| 85 void OnAllowDatabase(const std::string& origin_url, | 87 void OnAllowDatabase(const std::string& origin_url, |
| 86 const string16& name, | 88 const string16& name, |
| 87 const string16& display_name, | 89 const string16& display_name, |
| 88 unsigned long estimated_size, | 90 unsigned long estimated_size, |
| 89 bool* result); | 91 bool* result); |
| 92 void OnAllowDOMStorage(int render_view_id, |
| 93 const GURL& url, |
| 94 DOMStorageType type, |
| 95 bool* result); |
| 90 | 96 |
| 91 int render_process_id_; | 97 int render_process_id_; |
| 92 | 98 |
| 93 // The Profile associated with our renderer process. This should only be | 99 // The Profile associated with our renderer process. This should only be |
| 94 // accessed on the UI thread! | 100 // accessed on the UI thread! |
| 95 Profile* profile_; | 101 Profile* profile_; |
| 96 scoped_refptr<net::URLRequestContextGetter> request_context_; | 102 scoped_refptr<net::URLRequestContextGetter> request_context_; |
| 97 // Used to look up permissions at database creation time. | 103 // Used to look up permissions at database creation time. |
| 98 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 104 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 99 | 105 |
| 100 BooleanPrefMember allow_outdated_plugins_; | 106 BooleanPrefMember allow_outdated_plugins_; |
| 101 BooleanPrefMember always_authorize_plugins_; | 107 BooleanPrefMember always_authorize_plugins_; |
| 102 | 108 |
| 103 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); | 109 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); |
| 104 }; | 110 }; |
| 105 | 111 |
| 106 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 112 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
| OLD | NEW |