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 "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "chrome/common/content_settings.h" | 10 #include "chrome/common/content_settings.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 void OnCanTriggerClipboardRead(const GURL& url, bool* allowed); | 117 void OnCanTriggerClipboardRead(const GURL& url, bool* allowed); |
118 void OnCanTriggerClipboardWrite(const GURL& url, bool* allowed); | 118 void OnCanTriggerClipboardWrite(const GURL& url, bool* allowed); |
119 void OnClearPredictorCache(int* result); | 119 void OnClearPredictorCache(int* result); |
120 void OnGetCookies(const GURL& url, | 120 void OnGetCookies(const GURL& url, |
121 const GURL& first_party_for_cookies, | 121 const GURL& first_party_for_cookies, |
122 IPC::Message* reply_msg); | 122 IPC::Message* reply_msg); |
123 void OnSetCookie(const IPC::Message& message, | 123 void OnSetCookie(const IPC::Message& message, |
124 const GURL& url, | 124 const GURL& url, |
125 const GURL& first_party_for_cookies, | 125 const GURL& first_party_for_cookies, |
126 const std::string& cookie); | 126 const std::string& cookie); |
| 127 void OnSavedPageAsMHTML(int job_id, bool success); |
127 | 128 |
128 int render_process_id_; | 129 int render_process_id_; |
129 ProfileId profile_id_; | 130 ProfileId profile_id_; |
130 | 131 |
131 // The Profile associated with our renderer process. This should only be | 132 // The Profile associated with our renderer process. This should only be |
132 // accessed on the UI thread! | 133 // accessed on the UI thread! |
133 Profile* profile_; | 134 Profile* profile_; |
134 scoped_refptr<net::URLRequestContextGetter> request_context_; | 135 scoped_refptr<net::URLRequestContextGetter> request_context_; |
135 // Used to look up permissions at database creation time. | 136 // Used to look up permissions at database creation time. |
136 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 137 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
137 | 138 |
138 BooleanPrefMember allow_outdated_plugins_; | 139 BooleanPrefMember allow_outdated_plugins_; |
139 BooleanPrefMember always_authorize_plugins_; | 140 BooleanPrefMember always_authorize_plugins_; |
140 | 141 |
141 base::WeakPtrFactory<ChromeRenderMessageFilter> weak_ptr_factory_; | 142 base::WeakPtrFactory<ChromeRenderMessageFilter> weak_ptr_factory_; |
142 | 143 |
143 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); | 144 DISALLOW_COPY_AND_ASSIGN(ChromeRenderMessageFilter); |
144 }; | 145 }; |
145 | 146 |
146 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ | 147 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RENDER_MESSAGE_FILTER_H_ |
OLD | NEW |