OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DETACHABLE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual bool OnUploadProgress(int request_id, uint64 position, | 51 virtual bool OnUploadProgress(int request_id, uint64 position, |
52 uint64 size) OVERRIDE; | 52 uint64 size) OVERRIDE; |
53 virtual bool OnRequestRedirected(int request_id, const GURL& url, | 53 virtual bool OnRequestRedirected(int request_id, const GURL& url, |
54 ResourceResponse* response, | 54 ResourceResponse* response, |
55 bool* defer) OVERRIDE; | 55 bool* defer) OVERRIDE; |
56 virtual bool OnResponseStarted(int request_id, | 56 virtual bool OnResponseStarted(int request_id, |
57 ResourceResponse* response, | 57 ResourceResponse* response, |
58 bool* defer) OVERRIDE; | 58 bool* defer) OVERRIDE; |
59 virtual bool OnWillStart(int request_id, const GURL& url, | 59 virtual bool OnWillStart(int request_id, const GURL& url, |
60 bool* defer) OVERRIDE; | 60 bool* defer) OVERRIDE; |
| 61 virtual bool OnBeforeNetworkStart(int request_id, |
| 62 const GURL& url, |
| 63 bool* defer) OVERRIDE; |
61 virtual bool OnWillRead(int request_id, | 64 virtual bool OnWillRead(int request_id, |
62 scoped_refptr<net::IOBuffer>* buf, | 65 scoped_refptr<net::IOBuffer>* buf, |
63 int* buf_size, | 66 int* buf_size, |
64 int min_size) OVERRIDE; | 67 int min_size) OVERRIDE; |
65 virtual bool OnReadCompleted(int request_id, int bytes_read, | 68 virtual bool OnReadCompleted(int request_id, int bytes_read, |
66 bool* defer) OVERRIDE; | 69 bool* defer) OVERRIDE; |
67 virtual void OnResponseCompleted(int request_id, | 70 virtual void OnResponseCompleted(int request_id, |
68 const net::URLRequestStatus& status, | 71 const net::URLRequestStatus& status, |
69 const std::string& security_info, | 72 const std::string& security_info, |
70 bool* defer) OVERRIDE; | 73 bool* defer) OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... |
85 | 88 |
86 bool is_deferred_; | 89 bool is_deferred_; |
87 bool is_finished_; | 90 bool is_finished_; |
88 | 91 |
89 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); | 92 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); |
90 }; | 93 }; |
91 | 94 |
92 } // namespace content | 95 } // namespace content |
93 | 96 |
94 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ | 97 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
OLD | NEW |