OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ |
6 #define CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ | 6 #define CONTENT_RENDERER_FETCHERS_ASSOCIATED_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/associated_resource_fetcher.h" | 15 #include "content/public/renderer/associated_resource_fetcher.h" |
16 #include "third_party/WebKit/public/platform/WebURLRequest.h" | 16 #include "third_party/WebKit/public/platform/WebURLRequest.h" |
17 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h" | 17 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace blink { | 21 namespace blink { |
22 class WebAssociatedURLLoader; | 22 class WebAssociatedURLLoader; |
23 class WebFrame; | 23 class WebFrame; |
24 class WebURLLoader; | |
25 enum class WebCachePolicy; | 24 enum class WebCachePolicy; |
26 } | 25 } |
27 | 26 |
28 namespace content { | 27 namespace content { |
29 | 28 |
30 class AssociatedResourceFetcherImpl : public AssociatedResourceFetcher { | 29 class AssociatedResourceFetcherImpl : public AssociatedResourceFetcher { |
31 public: | 30 public: |
32 // AssociatedResourceFetcher implementation: | 31 // AssociatedResourceFetcher implementation: |
33 void SetSkipServiceWorker( | 32 void SetSkipServiceWorker( |
34 blink::WebURLRequest::SkipServiceWorker skip_service_worker) override; | 33 blink::WebURLRequest::SkipServiceWorker skip_service_worker) override; |
(...skipping 27 matching lines...) Expand all Loading... |
62 | 61 |
63 // Limit how long to wait for the server. | 62 // Limit how long to wait for the server. |
64 base::OneShotTimer timeout_timer_; | 63 base::OneShotTimer timeout_timer_; |
65 | 64 |
66 DISALLOW_COPY_AND_ASSIGN(AssociatedResourceFetcherImpl); | 65 DISALLOW_COPY_AND_ASSIGN(AssociatedResourceFetcherImpl); |
67 }; | 66 }; |
68 | 67 |
69 } // namespace content | 68 } // namespace content |
70 | 69 |
71 #endif // CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ | 70 #endif // CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ |
OLD | NEW |