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_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // ResourceHandler implementation: | 29 // ResourceHandler implementation: |
30 virtual bool OnUploadProgress(int request_id, | 30 virtual bool OnUploadProgress(int request_id, |
31 uint64 position, | 31 uint64 position, |
32 uint64 size) OVERRIDE; | 32 uint64 size) OVERRIDE; |
33 virtual bool OnRequestRedirected(int request_id, | 33 virtual bool OnRequestRedirected(int request_id, |
34 const GURL& new_url, | 34 const GURL& new_url, |
35 ResourceResponse* response, | 35 ResourceResponse* response, |
36 bool* defer) OVERRIDE; | 36 bool* defer) OVERRIDE; |
37 virtual bool OnResponseStarted(int request_id, | 37 virtual bool OnResponseStarted(int request_id, |
38 ResourceResponse* response) OVERRIDE; | 38 ResourceResponse* response, |
| 39 bool* defer) OVERRIDE; |
39 virtual bool OnWillStart(int request_id, | 40 virtual bool OnWillStart(int request_id, |
40 const GURL& url, | 41 const GURL& url, |
41 bool* defer) OVERRIDE; | 42 bool* defer) OVERRIDE; |
42 virtual bool OnWillRead(int request_id, | 43 virtual bool OnWillRead(int request_id, |
43 net::IOBuffer** buf, | 44 net::IOBuffer** buf, |
44 int* buf_size, | 45 int* buf_size, |
45 int min_size) OVERRIDE; | 46 int min_size) OVERRIDE; |
46 virtual bool OnReadCompleted(int request_id, | 47 virtual bool OnReadCompleted(int request_id, |
47 int* bytes_read) OVERRIDE; | 48 int* bytes_read, |
| 49 bool* defer) OVERRIDE; |
48 virtual bool OnResponseCompleted(int request_id, | 50 virtual bool OnResponseCompleted(int request_id, |
49 const net::URLRequestStatus& status, | 51 const net::URLRequestStatus& status, |
50 const std::string& security_info) OVERRIDE; | 52 const std::string& security_info) OVERRIDE; |
51 virtual void OnRequestClosed() OVERRIDE; | 53 virtual void OnRequestClosed() OVERRIDE; |
52 virtual void OnDataDownloaded(int request_id, | 54 virtual void OnDataDownloaded(int request_id, |
53 int bytes_downloaded) OVERRIDE; | 55 int bytes_downloaded) OVERRIDE; |
54 | 56 |
55 static void GlobalCleanup(); | 57 static void GlobalCleanup(); |
56 | 58 |
57 private: | 59 private: |
(...skipping 14 matching lines...) Expand all Loading... |
72 // TODO(battre): Remove url. This is only for debugging | 74 // TODO(battre): Remove url. This is only for debugging |
73 // http://crbug.com/107692. | 75 // http://crbug.com/107692. |
74 GURL url_; | 76 GURL url_; |
75 | 77 |
76 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 78 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
77 }; | 79 }; |
78 | 80 |
79 } // namespace content | 81 } // namespace content |
80 | 82 |
81 #endif // CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ | 83 #endif // CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ |
OLD | NEW |