OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHILD_WEB_URL_LOADER_IMPL_H_ | 5 #ifndef CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 6 #define CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 }; | 33 }; |
34 | 34 |
35 class CONTENT_EXPORT WebURLLoaderImpl | 35 class CONTENT_EXPORT WebURLLoaderImpl |
36 : public NON_EXPORTED_BASE(blink::WebURLLoader) { | 36 : public NON_EXPORTED_BASE(blink::WebURLLoader) { |
37 public: | 37 public: |
38 explicit WebURLLoaderImpl( | 38 explicit WebURLLoaderImpl( |
39 ResourceDispatcher* resource_dispatcher, | 39 ResourceDispatcher* resource_dispatcher, |
40 scoped_refptr<base::SingleThreadTaskRunner> task_runner); | 40 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
41 virtual ~WebURLLoaderImpl(); | 41 virtual ~WebURLLoaderImpl(); |
42 | 42 |
43 static blink::WebURLError CreateError(const blink::WebURL& unreachable_url, | |
44 bool stale_copy_in_cache, | |
45 int reason); | |
46 static void PopulateURLResponse( | 43 static void PopulateURLResponse( |
47 const GURL& url, | 44 const GURL& url, |
48 const ResourceResponseInfo& info, | 45 const ResourceResponseInfo& info, |
49 blink::WebURLResponse* response); | 46 blink::WebURLResponse* response); |
50 | 47 |
51 // WebURLLoader methods: | 48 // WebURLLoader methods: |
52 virtual void loadSynchronously( | 49 virtual void loadSynchronously( |
53 const blink::WebURLRequest& request, | 50 const blink::WebURLRequest& request, |
54 blink::WebURLResponse& response, | 51 blink::WebURLResponse& response, |
55 blink::WebURLError& error, | 52 blink::WebURLError& error, |
(...skipping 11 matching lines...) Expand all Loading... |
67 private: | 64 private: |
68 class Context; | 65 class Context; |
69 scoped_refptr<Context> context_; | 66 scoped_refptr<Context> context_; |
70 | 67 |
71 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 68 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
72 }; | 69 }; |
73 | 70 |
74 } // namespace content | 71 } // namespace content |
75 | 72 |
76 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 73 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
OLD | NEW |