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

Unified Diff: content/child/resource_dispatcher.h

Issue 2900563002: Network service: Safe browsing check for sub-resources from renderer. (Closed)
Patch Set: . Created 3 years, 7 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 | « content/child/request_extra_data.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/resource_dispatcher.h
diff --git a/content/child/resource_dispatcher.h b/content/child/resource_dispatcher.h
index 9830c7d8ea33708cc0368c8cda6151425718b522..82708ba6bc0fb6850a6cba4343ffb0323b50286f 100644
--- a/content/child/resource_dispatcher.h
+++ b/content/child/resource_dispatcher.h
@@ -23,6 +23,7 @@
#include "base/time/time.h"
#include "content/common/content_export.h"
#include "content/common/url_loader.mojom.h"
+#include "content/public/child/url_loader_throttle.h"
#include "content/public/common/resource_type.h"
#include "ipc/ipc_listener.h"
#include "ipc/ipc_sender.h"
@@ -47,6 +48,7 @@ struct ResourceResponseHead;
class SharedMemoryReceivedDataFactory;
struct SiteIsolationResponseMetaData;
struct SyncLoadResponse;
+class ThrottlingURLLoader;
class URLLoaderClientImpl;
namespace mojom {
@@ -76,11 +78,13 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
//
// |routing_id| is used to associated the bridge with a frame's network
// context.
- virtual void StartSync(std::unique_ptr<ResourceRequest> request,
- int routing_id,
- SyncLoadResponse* response,
- blink::WebURLRequest::LoadingIPCType ipc_type,
- mojom::URLLoaderFactory* url_loader_factory);
+ virtual void StartSync(
+ std::unique_ptr<ResourceRequest> request,
+ int routing_id,
+ SyncLoadResponse* response,
+ blink::WebURLRequest::LoadingIPCType ipc_type,
+ mojom::URLLoaderFactory* url_loader_factory,
+ std::vector<std::unique_ptr<URLLoaderThrottle>> throttles);
// Call this method to initiate the request. If this method succeeds, then
// the peer's methods will be called asynchronously to report various events.
@@ -100,6 +104,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
std::unique_ptr<RequestPeer> peer,
blink::WebURLRequest::LoadingIPCType ipc_type,
mojom::URLLoaderFactory* url_loader_factory,
+ std::vector<std::unique_ptr<URLLoaderThrottle>> throttles,
mojo::ScopedDataPipeConsumerHandle consumer_handle);
// Removes a request from the |pending_requests_| list, returning true if the
@@ -190,7 +195,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Listener {
int buffer_size;
// For mojo loading.
- mojom::URLLoaderPtr url_loader;
+ std::unique_ptr<ThrottlingURLLoader> url_loader;
std::unique_ptr<URLLoaderClientImpl> url_loader_client;
};
using PendingRequestMap = std::map<int, std::unique_ptr<PendingRequestInfo>>;
« no previous file with comments | « content/child/request_extra_data.h ('k') | content/child/resource_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698