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

Side by Side Diff: content/renderer/fetchers/resource_fetcher_impl.h

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_
6 #define CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ 6 #define CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
15 #include "content/public/renderer/resource_fetcher.h" 15 #include "content/public/renderer/resource_fetcher.h"
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" 16 #include "third_party/WebKit/public/platform/WebURLRequest.h"
17 17
18 class GURL; 18 class GURL;
19 19
20 namespace blink { 20 namespace blink {
21 class WebFrame; 21 class WebLocalFrame;
22 class WebURLLoader; 22 class WebURLLoader;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 26
27 class ResourceFetcherImpl : public ResourceFetcher { 27 class ResourceFetcherImpl : public ResourceFetcher {
28 public: 28 public:
29 // ResourceFetcher implementation: 29 // ResourceFetcher implementation:
30 void SetMethod(const std::string& method) override; 30 void SetMethod(const std::string& method) override;
31 void SetBody(const std::string& body) override; 31 void SetBody(const std::string& body) override;
32 void SetHeader(const std::string& header, const std::string& value) override; 32 void SetHeader(const std::string& header, const std::string& value) override;
33 void Start(blink::WebFrame* frame, 33 void Start(blink::WebLocalFrame* frame,
34 blink::WebURLRequest::RequestContext request_context, 34 blink::WebURLRequest::RequestContext request_context,
35 const Callback& callback) override; 35 const Callback& callback) override;
36 void SetTimeout(const base::TimeDelta& timeout) override; 36 void SetTimeout(const base::TimeDelta& timeout) override;
37 37
38 private: 38 private:
39 friend class ResourceFetcher; 39 friend class ResourceFetcher;
40 40
41 class ClientImpl; 41 class ClientImpl;
42 42
43 explicit ResourceFetcherImpl(const GURL& url); 43 explicit ResourceFetcherImpl(const GURL& url);
(...skipping 11 matching lines...) Expand all
55 55
56 // Limit how long to wait for the server. 56 // Limit how long to wait for the server.
57 base::OneShotTimer timeout_timer_; 57 base::OneShotTimer timeout_timer_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl); 59 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl);
60 }; 60 };
61 61
62 } // namespace content 62 } // namespace content
63 63
64 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ 64 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/renderer/resource_fetcher.h ('k') | content/renderer/fetchers/resource_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698