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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 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/web_url_loader_impl.h ('k') | content/child/web_url_loader_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index 9bc53f51824941ddce61fa3af27d9e1b1b1edf15..6a870eaaed4ddcbb87a7304cc93a4ed93958380f 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -40,7 +40,6 @@
#include "content/public/child/fixed_received_data.h"
#include "content/public/child/request_peer.h"
#include "content/public/common/browser_side_navigation_policy.h"
-#include "mojo/public/cpp/bindings/associated_group.h"
#include "net/base/data_url.h"
#include "net/base/filename_util.h"
#include "net/base/net_errors.h"
@@ -362,8 +361,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context> {
Context(WebURLLoaderImpl* loader,
ResourceDispatcher* resource_dispatcher,
- mojom::URLLoaderFactory* factory,
- mojo::AssociatedGroup* associated_group);
+ mojom::URLLoaderFactory* factory);
WebURLLoaderClient* client() const { return client_; }
void set_client(WebURLLoaderClient* client) { client_ = client; }
@@ -416,7 +414,6 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context> {
// These are owned by the Blink::Platform singleton.
mojom::URLLoaderFactory* url_loader_factory_;
- mojo::AssociatedGroup* associated_group_;
};
// A thin wrapper class for Context to ensure its lifetime while it is
@@ -451,16 +448,14 @@ class WebURLLoaderImpl::RequestPeerImpl : public RequestPeer {
WebURLLoaderImpl::Context::Context(WebURLLoaderImpl* loader,
ResourceDispatcher* resource_dispatcher,
- mojom::URLLoaderFactory* url_loader_factory,
- mojo::AssociatedGroup* associated_group)
+ mojom::URLLoaderFactory* url_loader_factory)
: loader_(loader),
client_(NULL),
resource_dispatcher_(resource_dispatcher),
task_runner_(base::ThreadTaskRunnerHandle::Get()),
defers_loading_(NOT_DEFERRING),
request_id_(-1),
- url_loader_factory_(url_loader_factory),
- associated_group_(associated_group) {}
+ url_loader_factory_(url_loader_factory) {}
void WebURLLoaderImpl::Context::Cancel() {
TRACE_EVENT_WITH_FLOW0("loading", "WebURLLoaderImpl::Context::Cancel", this,
@@ -638,7 +633,7 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
std::move(resource_request), request.requestorID(), task_runner_,
extra_data->frame_origin(),
base::MakeUnique<WebURLLoaderImpl::RequestPeerImpl>(this),
- request.getLoadingIPCType(), url_loader_factory_, associated_group_);
+ request.getLoadingIPCType(), url_loader_factory_);
if (defers_loading_ != NOT_DEFERRING)
resource_dispatcher_->SetDefersLoading(request_id_, true);
@@ -1036,12 +1031,8 @@ void WebURLLoaderImpl::RequestPeerImpl::OnCompletedRequest(
// WebURLLoaderImpl -----------------------------------------------------------
WebURLLoaderImpl::WebURLLoaderImpl(ResourceDispatcher* resource_dispatcher,
- mojom::URLLoaderFactory* url_loader_factory,
- mojo::AssociatedGroup* associated_group)
- : context_(new Context(this,
- resource_dispatcher,
- url_loader_factory,
- associated_group)) {}
+ mojom::URLLoaderFactory* url_loader_factory)
+ : context_(new Context(this, resource_dispatcher, url_loader_factory)) {}
WebURLLoaderImpl::~WebURLLoaderImpl() {
cancel();
« no previous file with comments | « content/child/web_url_loader_impl.h ('k') | content/child/web_url_loader_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698