| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 // WebURLLoaderClientImpl methods: | 60 // WebURLLoaderClientImpl methods: |
| 61 void OnLoadComplete() override; | 61 void OnLoadComplete() override; |
| 62 void Cancel() override; | 62 void Cancel() override; |
| 63 | 63 |
| 64 std::unique_ptr<blink::WebURLLoader> loader_; | 64 std::unique_ptr<blink::WebURLLoader> loader_; |
| 65 | 65 |
| 66 // Options to send to the loader. | 66 // Options to send to the loader. |
| 67 blink::WebURLLoaderOptions options_; | 67 blink::WebURLLoaderOptions options_; |
| 68 | 68 |
| 69 // Request to send. Released once Start() is called. | 69 // Request to send. |
| 70 blink::WebURLRequest request_; | 70 blink::WebURLRequest request_; |
| 71 | 71 |
| 72 // Callback when we're done. | 72 // Callback when we're done. |
| 73 Callback callback_; | 73 Callback callback_; |
| 74 | 74 |
| 75 // Limit how long to wait for the server. | 75 // Limit how long to wait for the server. |
| 76 base::OneShotTimer timeout_timer_; | 76 base::OneShotTimer timeout_timer_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl); | 78 DISALLOW_COPY_AND_ASSIGN(ResourceFetcherImpl); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace content | 81 } // namespace content |
| 82 | 82 |
| 83 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ | 83 #endif // CONTENT_RENDERER_FETCHERS_RESOURCE_FETCHER_IMPL_H_ |
| OLD | NEW |