Index: chrome/browser/renderer_host/resource_dispatcher_host.h |
=================================================================== |
--- chrome/browser/renderer_host/resource_dispatcher_host.h (revision 70223) |
+++ chrome/browser/renderer_host/resource_dispatcher_host.h (working copy) |
@@ -23,6 +23,7 @@ |
#include "base/scoped_ptr.h" |
#include "base/timer.h" |
#include "chrome/common/child_process_info.h" |
+#include "chrome/common/notification_type.h" |
#include "chrome/browser/renderer_host/resource_queue.h" |
#include "ipc/ipc_message.h" |
#include "net/url_request/url_request.h" |
@@ -32,6 +33,7 @@ |
class DownloadFileManager; |
class DownloadRequestLimiter; |
class LoginHandler; |
+class NotificationDetails; |
class PluginService; |
class ResourceDispatcherHostRequestInfo; |
class ResourceHandler; |
@@ -420,6 +422,14 @@ |
// is to user-perceived page load performance. |
static net::RequestPriority DetermineRequestPriority(ResourceType::Type type); |
+ // Sends the given notification on the UI thread. The RenderViewHost's |
+ // controller is used as the source. |
+ template <class T> |
+ static void NotifyOnUI(NotificationType type, |
+ int render_process_id, |
+ int render_view_id, |
+ T* detail); |
+ |
PendingRequestList pending_requests_; |
// Collection of temp files downloaded for child processes via |