Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/browser/renderer_host/resource_message_filter.h

Issue 119191: Add an extension to expose some primitives to JS for doing ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 IPC::Message* reply_msg); 204 IPC::Message* reply_msg);
205 #endif 205 #endif
206 // Browser side transport DIB allocation 206 // Browser side transport DIB allocation
207 void OnAllocTransportDIB(size_t size, 207 void OnAllocTransportDIB(size_t size,
208 TransportDIB::Handle* result); 208 TransportDIB::Handle* result);
209 void OnFreeTransportDIB(TransportDIB::Id dib_id); 209 void OnFreeTransportDIB(TransportDIB::Id dib_id);
210 210
211 void OnOpenChannelToExtension(int routing_id, 211 void OnOpenChannelToExtension(int routing_id,
212 const std::string& extension_id, int* port_id); 212 const std::string& extension_id, int* port_id);
213 213
214 void OnCloseIdleConnections();
215 void OnSetCacheMode(bool enabled);
216
214 #if defined(OS_LINUX) 217 #if defined(OS_LINUX)
215 void SendDelayedReply(IPC::Message* reply_msg); 218 void SendDelayedReply(IPC::Message* reply_msg);
216 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg); 219 void DoOnGetScreenInfo(gfx::NativeViewId view, IPC::Message* reply_msg);
217 void DoOnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); 220 void DoOnGetWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg);
218 void DoOnGetRootWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg); 221 void DoOnGetRootWindowRect(gfx::NativeViewId view, IPC::Message* reply_msg);
219 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format, 222 void DoOnClipboardIsFormatAvailable(Clipboard::FormatType format,
220 IPC::Message* reply_msg); 223 IPC::Message* reply_msg);
221 void DoOnClipboardReadText(IPC::Message* reply_msg); 224 void DoOnClipboardReadText(IPC::Message* reply_msg);
222 void DoOnClipboardReadAsciiText(IPC::Message* reply_msg); 225 void DoOnClipboardReadAsciiText(IPC::Message* reply_msg);
223 void DoOnClipboardReadHTML(IPC::Message* reply_msg); 226 void DoOnClipboardReadHTML(IPC::Message* reply_msg);
224 #endif 227 #endif
225 228
229 bool CheckBenchmarkingEnabled();
230
226 // We have our own clipboard because we want to access the clipboard on the 231 // We have our own clipboard because we want to access the clipboard on the
227 // IO thread instead of forwarding (possibly synchronous) messages to the UI 232 // IO thread instead of forwarding (possibly synchronous) messages to the UI
228 // thread. This instance of the clipboard should be accessed only on the IO 233 // thread. This instance of the clipboard should be accessed only on the IO
229 // thread. 234 // thread.
230 static Clipboard* GetClipboard(); 235 static Clipboard* GetClipboard();
231 236
232 NotificationRegistrar registrar_; 237 NotificationRegistrar registrar_;
233 238
234 // The channel associated with the renderer connection. This pointer is not 239 // The channel associated with the renderer connection. This pointer is not
235 // owned by this class. 240 // owned by this class.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Handles appcache related messages 286 // Handles appcache related messages
282 scoped_ptr<AppCacheDispatcherHost> app_cache_dispatcher_host_; 287 scoped_ptr<AppCacheDispatcherHost> app_cache_dispatcher_host_;
283 288
284 // Whether this process is used for off the record tabs. 289 // Whether this process is used for off the record tabs.
285 bool off_the_record_; 290 bool off_the_record_;
286 291
287 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter); 292 DISALLOW_COPY_AND_ASSIGN(ResourceMessageFilter);
288 }; 293 };
289 294
290 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_ 295 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_MSG_FILTER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698