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

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

Issue 252001: Privacy Blacklist Unblock... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then fowards the messages from the 7 // dispatches them to URLRequests. It then fowards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
11 11
12 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 12 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
13 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 13 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
14 14
15 #include <map> 15 #include <map>
16 #include <string> 16 #include <string>
17 #include <vector> 17 #include <vector>
18 18
19 #include "base/basictypes.h" 19 #include "base/basictypes.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/observer_list.h" 21 #include "base/observer_list.h"
22 #include "base/process.h" 22 #include "base/process.h"
23 #include "base/timer.h" 23 #include "base/timer.h"
24 #include "chrome/browser/renderer_host/resource_handler.h" 24 #include "chrome/browser/renderer_host/resource_handler.h"
25 #include "chrome/common/child_process_info.h" 25 #include "chrome/common/child_process_info.h"
26 #include "chrome/browser/privacy_blacklist/blocked_response.h"
26 #include "ipc/ipc_message.h" 27 #include "ipc/ipc_message.h"
27 #include "net/url_request/url_request.h" 28 #include "net/url_request/url_request.h"
28 #include "webkit/glue/resource_type.h" 29 #include "webkit/glue/resource_type.h"
29 30
30 class CrossSiteResourceHandler; 31 class CrossSiteResourceHandler;
31 class DownloadFileManager; 32 class DownloadFileManager;
32 class DownloadRequestManager; 33 class DownloadRequestManager;
33 class LoginHandler; 34 class LoginHandler;
34 class MessageLoop; 35 class MessageLoop;
35 class PluginService; 36 class PluginService;
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 // individual requests is given by CalculateApproximateMemoryCost). 471 // individual requests is given by CalculateApproximateMemoryCost).
471 // The total number of outstanding requests is roughly: 472 // The total number of outstanding requests is roughly:
472 // (max_outstanding_requests_cost_per_process_ / 473 // (max_outstanding_requests_cost_per_process_ /
473 // kAvgBytesPerOutstandingRequest) 474 // kAvgBytesPerOutstandingRequest)
474 int max_outstanding_requests_cost_per_process_; 475 int max_outstanding_requests_cost_per_process_;
475 476
476 // Used during IPC message dispatching so that the handlers can get a pointer 477 // Used during IPC message dispatching so that the handlers can get a pointer
477 // to the source of the message. 478 // to the source of the message.
478 Receiver* receiver_; 479 Receiver* receiver_;
479 480
481 // Keeps track of elements blocked by the Privacy Blacklist.
482 chrome::BlockedResponse blocked_;
483
480 static bool g_is_http_prioritization_enabled; 484 static bool g_is_http_prioritization_enabled;
481 485
482 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 486 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
483 }; 487 };
484 488
485 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 489 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/privacy_blacklist/blocked_response.cc ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698