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