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 |
(...skipping 11 matching lines...) Expand all Loading... |
22 class WebAssociatedURLLoader; | 22 class WebAssociatedURLLoader; |
23 class WebFrame; | 23 class WebFrame; |
24 enum class WebCachePolicy; | 24 enum class WebCachePolicy; |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
28 | 28 |
29 class AssociatedResourceFetcherImpl : public AssociatedResourceFetcher { | 29 class AssociatedResourceFetcherImpl : public AssociatedResourceFetcher { |
30 public: | 30 public: |
31 // AssociatedResourceFetcher implementation: | 31 // AssociatedResourceFetcher implementation: |
32 void SetSkipServiceWorker( | 32 void SetServiceWorkerMode( |
33 blink::WebURLRequest::SkipServiceWorker skip_service_worker) override; | 33 blink::WebURLRequest::ServiceWorkerMode service_worker_mode) override; |
34 void SetCachePolicy(blink::WebCachePolicy policy) override; | 34 void SetCachePolicy(blink::WebCachePolicy policy) override; |
35 void SetLoaderOptions( | 35 void SetLoaderOptions( |
36 const blink::WebAssociatedURLLoaderOptions& options) override; | 36 const blink::WebAssociatedURLLoaderOptions& options) override; |
37 void Start(blink::WebFrame* frame, | 37 void Start(blink::WebFrame* frame, |
38 blink::WebURLRequest::RequestContext request_context, | 38 blink::WebURLRequest::RequestContext request_context, |
39 blink::WebURLRequest::FrameType frame_type, | 39 blink::WebURLRequest::FrameType frame_type, |
40 const Callback& callback) override; | 40 const Callback& callback) override; |
41 | 41 |
42 private: | 42 private: |
43 friend class AssociatedResourceFetcher; | 43 friend class AssociatedResourceFetcher; |
(...skipping 17 matching lines...) Expand all Loading... |
61 | 61 |
62 // Limit how long to wait for the server. | 62 // Limit how long to wait for the server. |
63 base::OneShotTimer timeout_timer_; | 63 base::OneShotTimer timeout_timer_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(AssociatedResourceFetcherImpl); | 65 DISALLOW_COPY_AND_ASSIGN(AssociatedResourceFetcherImpl); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
69 | 69 |
70 #endif // CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ | 70 #endif // CONTENT_RENDERER_FETCHERS_ASSOCIATED_RESOURCE_FETCHER_IMPL_H_ |
OLD | NEW |