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

Unified Diff: content/renderer/fetchers/resource_fetcher_impl.cc

Issue 2869663002: ResourceFetcher::Start should be given a WebLocalFrame (Closed)
Patch Set: fix 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/renderer/fetchers/resource_fetcher_impl.h ('k') | content/renderer/mojo_context_state.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/fetchers/resource_fetcher_impl.cc
diff --git a/content/renderer/fetchers/resource_fetcher_impl.cc b/content/renderer/fetchers/resource_fetcher_impl.cc
index 037e0ecffef64a676251b011d2bbea4b23d156c7..7b6a0e85f31ca5322b146afd57b182e01c4be911 100644
--- a/content/renderer/fetchers/resource_fetcher_impl.cc
+++ b/content/renderer/fetchers/resource_fetcher_impl.cc
@@ -20,8 +20,8 @@
#include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
#include "third_party/WebKit/public/platform/WebURLResponse.h"
#include "third_party/WebKit/public/web/WebDocument.h"
-#include "third_party/WebKit/public/web/WebFrame.h"
#include "third_party/WebKit/public/web/WebKit.h"
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
#include "third_party/WebKit/public/web/WebSecurityPolicy.h"
namespace content {
@@ -171,12 +171,14 @@ void ResourceFetcherImpl::SetHeader(const std::string& header,
}
void ResourceFetcherImpl::Start(
- blink::WebFrame* frame,
+ blink::WebLocalFrame* frame,
blink::WebURLRequest::RequestContext request_context,
const Callback& callback) {
DCHECK(!loader_);
DCHECK(!client_);
DCHECK(!request_.IsNull());
+ DCHECK(frame);
+ DCHECK(!frame->GetDocument().IsNull());
if (!request_.HttpBody().IsNull())
DCHECK_NE("GET", request_.HttpMethod().Utf8()) << "GETs can't have bodies.";
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.h ('k') | content/renderer/mojo_context_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698