OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual bool OnRequestRedirected(int request_id, | 42 virtual bool OnRequestRedirected(int request_id, |
43 const GURL& new_url, | 43 const GURL& new_url, |
44 ResourceResponse* response, | 44 ResourceResponse* response, |
45 bool* defer) OVERRIDE; | 45 bool* defer) OVERRIDE; |
46 virtual bool OnResponseStarted(int request_id, | 46 virtual bool OnResponseStarted(int request_id, |
47 ResourceResponse* response, | 47 ResourceResponse* response, |
48 bool* defer) OVERRIDE; | 48 bool* defer) OVERRIDE; |
49 virtual bool OnWillStart(int request_id, | 49 virtual bool OnWillStart(int request_id, |
50 const GURL& url, | 50 const GURL& url, |
51 bool* defer) OVERRIDE; | 51 bool* defer) OVERRIDE; |
| 52 virtual bool OnBeforeNetworkStart(int request_id, |
| 53 const GURL& url, |
| 54 bool* defer) OVERRIDE; |
52 virtual bool OnWillRead(int request_id, | 55 virtual bool OnWillRead(int request_id, |
53 scoped_refptr<net::IOBuffer>* buf, | 56 scoped_refptr<net::IOBuffer>* buf, |
54 int* buf_size, | 57 int* buf_size, |
55 int min_size) OVERRIDE; | 58 int min_size) OVERRIDE; |
56 virtual bool OnReadCompleted(int request_id, | 59 virtual bool OnReadCompleted(int request_id, |
57 int bytes_read, | 60 int bytes_read, |
58 bool* defer) OVERRIDE; | 61 bool* defer) OVERRIDE; |
59 virtual void OnResponseCompleted(int request_id, | 62 virtual void OnResponseCompleted(int request_id, |
60 const net::URLRequestStatus& status, | 63 const net::URLRequestStatus& status, |
61 const std::string& security_info, | 64 const std::string& security_info, |
(...skipping 26 matching lines...) Expand all Loading... |
88 bool has_checked_for_sufficient_resources_; | 91 bool has_checked_for_sufficient_resources_; |
89 bool sent_received_response_msg_; | 92 bool sent_received_response_msg_; |
90 bool sent_first_data_msg_; | 93 bool sent_first_data_msg_; |
91 | 94 |
92 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 95 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
93 }; | 96 }; |
94 | 97 |
95 } // namespace content | 98 } // namespace content |
96 | 99 |
97 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 100 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
OLD | NEW |