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 18 matching lines...) Expand all Loading... |
29 static void PopulateURLResponse( | 29 static void PopulateURLResponse( |
30 const GURL& url, | 30 const GURL& url, |
31 const ResourceResponseInfo& info, | 31 const ResourceResponseInfo& info, |
32 blink::WebURLResponse* response); | 32 blink::WebURLResponse* response); |
33 | 33 |
34 // WebURLLoader methods: | 34 // WebURLLoader methods: |
35 virtual void loadSynchronously( | 35 virtual void loadSynchronously( |
36 const blink::WebURLRequest& request, | 36 const blink::WebURLRequest& request, |
37 blink::WebURLResponse& response, | 37 blink::WebURLResponse& response, |
38 blink::WebURLError& error, | 38 blink::WebURLError& error, |
39 blink::WebData& data) OVERRIDE; | 39 blink::WebData& data) override; |
40 virtual void loadAsynchronously( | 40 virtual void loadAsynchronously( |
41 const blink::WebURLRequest& request, | 41 const blink::WebURLRequest& request, |
42 blink::WebURLLoaderClient* client) OVERRIDE; | 42 blink::WebURLLoaderClient* client) override; |
43 virtual void cancel() OVERRIDE; | 43 virtual void cancel() override; |
44 virtual void setDefersLoading(bool value) OVERRIDE; | 44 virtual void setDefersLoading(bool value) override; |
45 virtual void didChangePriority(blink::WebURLRequest::Priority new_priority, | 45 virtual void didChangePriority(blink::WebURLRequest::Priority new_priority, |
46 int intra_priority_value) OVERRIDE; | 46 int intra_priority_value) override; |
47 virtual bool attachThreadedDataReceiver( | 47 virtual bool attachThreadedDataReceiver( |
48 blink::WebThreadedDataReceiver* threaded_data_receiver) OVERRIDE; | 48 blink::WebThreadedDataReceiver* threaded_data_receiver) override; |
49 | 49 |
50 private: | 50 private: |
51 class Context; | 51 class Context; |
52 scoped_refptr<Context> context_; | 52 scoped_refptr<Context> context_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); | 54 DISALLOW_COPY_AND_ASSIGN(WebURLLoaderImpl); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace content | 57 } // namespace content |
58 | 58 |
59 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ | 59 #endif // CONTENT_CHILD_WEB_URL_LOADER_IMPL_H_ |
OLD | NEW |