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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.h

Issue 42541: Prioritize which HTTP requests get a socket first by adding a priority level ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_dispatcher_host.h
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.h (revision 12453)
+++ chrome/browser/renderer_host/resource_dispatcher_host.h (working copy)
@@ -13,7 +13,11 @@
#define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
#include <map>
+#include <string>
+#include <vector>
+#include "base/basictypes.h"
+#include "base/logging.h"
#include "base/observer_list.h"
#include "base/process.h"
#include "base/timer.h"
@@ -59,13 +63,14 @@
const ViewHostMsg_Resource_Request& request_data) = 0;
protected:
- Receiver(ChildProcessInfo::ProcessType type) : ChildProcessInfo(type) { }
+ explicit Receiver(ChildProcessInfo::ProcessType type)
+ : ChildProcessInfo(type) { }
virtual ~Receiver() { }
};
// Holds the data we would like to associate with each request
class ExtraRequestInfo : public URLRequest::UserData {
- friend class ResourceDispatcherHost;
+ friend class ResourceDispatcherHost;
public:
ExtraRequestInfo(ResourceHandler* handler,
ChildProcessInfo::ProcessType process_type,
@@ -173,6 +178,7 @@
class Observer {
public:
+ virtual ~Observer() { }
virtual void OnRequestStarted(ResourceDispatcherHost* resource_dispatcher,
URLRequest* request) = 0;
virtual void OnResponseCompleted(
@@ -358,7 +364,10 @@
void DataReceivedACK(int process_id, int request_id);
// Needed for the sync IPC message dispatcher macros.
- bool Send(IPC::Message* message) { delete message; return false; }
+ bool Send(IPC::Message* message) {
+ delete message;
+ return false;
+ }
private:
FRIEND_TEST(ResourceDispatcherHostTest, TestBlockedRequestsProcessDies);
@@ -424,7 +433,7 @@
// It may be enhanced in the future to provide some kind of prioritization
// mechanism. We should also consider a hashtable or binary tree if it turns
// out we have a lot of things here.
- typedef std::map<GlobalRequestID,URLRequest*> PendingRequestList;
+ typedef std::map<GlobalRequestID, URLRequest*> PendingRequestList;
// Deletes the pending request identified by the iterator passed in.
// This function will invalidate the iterator passed in. Callers should
« no previous file with comments | « no previous file | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698