Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1101)

Side by Side Diff: content/renderer/fetchers/associated_resource_fetcher_impl.h

Issue 2928033002: Move GetDocument method from WebFrame to WebLocalFrame. (Closed)
Patch Set: Split a DCHECK in two as suggested by boliu@. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/WebCachePolicy.h" 16 #include "third_party/WebKit/public/platform/WebCachePolicy.h"
17 #include "third_party/WebKit/public/platform/WebURLRequest.h" 17 #include "third_party/WebKit/public/platform/WebURLRequest.h"
18 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h" 18 #include "third_party/WebKit/public/web/WebAssociatedURLLoaderOptions.h"
19 19
20 class GURL; 20 class GURL;
21 21
22 namespace blink { 22 namespace blink {
23 class WebAssociatedURLLoader; 23 class WebAssociatedURLLoader;
24 class WebFrame; 24 class WebLocalFrame;
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 SetServiceWorkerMode( 32 void SetServiceWorkerMode(
33 blink::WebURLRequest::ServiceWorkerMode service_worker_mode) 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::WebLocalFrame* 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;
44 44
45 class ClientImpl; 45 class ClientImpl;
46 46
47 explicit AssociatedResourceFetcherImpl(const GURL& url); 47 explicit AssociatedResourceFetcherImpl(const GURL& url);
(...skipping 13 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « content/renderer/dom_serializer_browsertest.cc ('k') | content/renderer/fetchers/associated_resource_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698