OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RESOURCE_MSG_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
7 | 7 |
8 #if defined(OS_WIN) | 8 #if defined(OS_WIN) |
9 #include <windows.h> | 9 #include <windows.h> |
10 #endif | 10 #endif |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 void OnGetPreferredExtensionForMimeType(const std::string& mime_type, | 193 void OnGetPreferredExtensionForMimeType(const std::string& mime_type, |
194 FilePath::StringType* ext); | 194 FilePath::StringType* ext); |
195 void OnGetCPBrowsingContext(uint32* context); | 195 void OnGetCPBrowsingContext(uint32* context); |
196 | 196 |
197 #if defined(OS_WIN) | 197 #if defined(OS_WIN) |
198 // Used to pass resulting EMF from renderer to browser in printing. | 198 // Used to pass resulting EMF from renderer to browser in printing. |
199 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, | 199 void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, |
200 base::SharedMemoryHandle* browser_handle); | 200 base::SharedMemoryHandle* browser_handle); |
201 #endif | 201 #endif |
202 | 202 |
203 #if defined(OS_LINUX) | 203 #if defined(USE_X11) |
204 // Used to ask the browser allocate a block of shared memory for the renderer | 204 // Used to ask the browser allocate a block of shared memory for the renderer |
205 // to fill in resulting PDF in renderer. | 205 // to fill in resulting PDF in renderer. |
206 void OnAllocateShareMemory(size_t buffer_size, | 206 void OnAllocateShareMemory(size_t buffer_size, |
207 base::SharedMemoryHandle* browser_handle); | 207 base::SharedMemoryHandle* browser_handle); |
208 #endif | 208 #endif |
209 | 209 |
210 void OnResourceTypeStats(const WebKit::WebCache::ResourceTypeStats& stats); | 210 void OnResourceTypeStats(const WebKit::WebCache::ResourceTypeStats& stats); |
211 | 211 |
212 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); | 212 void OnResolveProxy(const GURL& url, IPC::Message* reply_msg); |
213 | 213 |
(...skipping 30 matching lines...) Expand all Loading... |
244 void OnOpenChannelToTab(int routing_id, int tab_id, | 244 void OnOpenChannelToTab(int routing_id, int tab_id, |
245 const std::string& extension_id, | 245 const std::string& extension_id, |
246 const std::string& channel_name, int* port_id); | 246 const std::string& channel_name, int* port_id); |
247 | 247 |
248 void OnCloseIdleConnections(); | 248 void OnCloseIdleConnections(); |
249 void OnSetCacheMode(bool enabled); | 249 void OnSetCacheMode(bool enabled); |
250 | 250 |
251 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); | 251 void OnGetFileSize(const FilePath& path, IPC::Message* reply_msg); |
252 void ReplyGetFileSize(int64 result, void* param); | 252 void ReplyGetFileSize(int64 result, void* param); |
253 | 253 |
254 #if defined(OS_LINUX) | 254 #if defined(USE_X11) |
255 void SendDelayedReply(IPC::Message* reply_msg); | 255 void SendDelayedReply(IPC::Message* reply_msg); |
256 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); | 256 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); |
257 void DoOnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); | 257 void DoOnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); |
258 void DoOnGetRootWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); | 258 void DoOnGetRootWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); |
259 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, | 259 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, |
260 Clipboard::Buffer buffer, | 260 Clipboard::Buffer buffer, |
261 IPC::Message* reply_msg); | 261 IPC::Message* reply_msg); |
262 void DoOnClipboardReadText(Clipboard::Buffer buffer, IPC::Message* reply_msg); | 262 void DoOnClipboardReadText(Clipboard::Buffer buffer, IPC::Message* reply_msg); |
263 void DoOnClipboardReadAsciiText(Clipboard::Buffer buffer, | 263 void DoOnClipboardReadAsciiText(Clipboard::Buffer buffer, |
264 IPC::Message* reply_msg); | 264 IPC::Message* reply_msg); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 // Whether this process is used for off the record tabs. | 338 // Whether this process is used for off the record tabs. |
339 bool off_the_record_; | 339 bool off_the_record_; |
340 | 340 |
341 // A callback to create a routing id for the associated renderer process. | 341 // A callback to create a routing id for the associated renderer process. |
342 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; | 342 scoped_ptr<CallbackWithReturnValue<int>::Type> next_route_id_callback_; |
343 | 343 |
344 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); | 344 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); |
345 }; | 345 }; |
346 | 346 |
347 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ | 347 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ |
OLD | NEW |