OLD | NEW |
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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 class ResourceFetcherImpl : public ResourceFetcher, | 30 class ResourceFetcherImpl : public ResourceFetcher, |
31 public WebURLLoaderClientImpl { | 31 public WebURLLoaderClientImpl { |
32 public: | 32 public: |
33 // ResourceFetcher implementation: | 33 // ResourceFetcher implementation: |
34 void SetMethod(const std::string& method) override; | 34 void SetMethod(const std::string& method) override; |
35 void SetBody(const std::string& body) override; | 35 void SetBody(const std::string& body) override; |
36 void SetHeader(const std::string& header, const std::string& value) override; | 36 void SetHeader(const std::string& header, const std::string& value) override; |
37 void SetSkipServiceWorker(bool skip_service_worker) override; | 37 void SetSkipServiceWorker(bool skip_service_worker) override; |
| 38 void SetCachePolicy(blink::WebURLRequest::CachePolicy policy) override; |
38 void SetLoaderOptions(const blink::WebURLLoaderOptions& options) override; | 39 void SetLoaderOptions(const blink::WebURLLoaderOptions& options) override; |
39 void Start(blink::WebFrame* frame, | 40 void Start(blink::WebFrame* frame, |
40 blink::WebURLRequest::RequestContext request_context, | 41 blink::WebURLRequest::RequestContext request_context, |
41 blink::WebURLRequest::FrameType frame_type, | 42 blink::WebURLRequest::FrameType frame_type, |
42 LoaderType loader_type, | 43 LoaderType loader_type, |
43 const Callback& callback) override; | 44 const Callback& callback) override; |
44 void SetTimeout(const base::TimeDelta& timeout) override; | 45 void SetTimeout(const base::TimeDelta& timeout) override; |
45 | 46 |
46 private: | 47 private: |
47 friend class ResourceFetcher; | 48 friend class ResourceFetcher; |
(...skipping 23 matching lines...) Expand all Loading... |
71 | 72 |
72 // Limit how long to wait for the server. | 73 // Limit how long to wait for the server. |
73 base::OneShotTimer<ResourceFetcherImpl> timeout_timer_; | 74 base::OneShotTimer<ResourceFetcherImpl> timeout_timer_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl); | 76 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace content | 79 } // namespace content |
79 | 80 |
80 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ | 81 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ |
OLD | NEW |