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_DOOMED_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/browser/renderer_host/resource_handler.h" | 10 #include "content/browser/renderer_host/resource_handler.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 // ResourceHandler implementation: | 23 // ResourceHandler implementation: |
24 virtual bool OnUploadProgress(int request_id, | 24 virtual bool OnUploadProgress(int request_id, |
25 uint64 position, | 25 uint64 position, |
26 uint64 size) OVERRIDE; | 26 uint64 size) OVERRIDE; |
27 virtual bool OnRequestRedirected(int request_id, | 27 virtual bool OnRequestRedirected(int request_id, |
28 const GURL& new_url, | 28 const GURL& new_url, |
29 content::ResourceResponse* response, | 29 content::ResourceResponse* response, |
30 bool* defer) OVERRIDE; | 30 bool* defer) OVERRIDE; |
31 virtual bool OnResponseStarted(int request_id, | 31 virtual bool OnResponseStarted(int request_id, |
32 content::ResourceResponse* response) OVERRIDE; | 32 content::ResourceResponse* response, |
| 33 bool* defer) OVERRIDE; |
33 virtual bool OnWillStart(int request_id, | 34 virtual bool OnWillStart(int request_id, |
34 const GURL& url, | 35 const GURL& url, |
35 bool* defer) OVERRIDE; | 36 bool* defer) OVERRIDE; |
36 virtual bool OnWillRead(int request_id, | 37 virtual bool OnWillRead(int request_id, |
37 net::IOBuffer** buf, | 38 net::IOBuffer** buf, |
38 int* buf_size, | 39 int* buf_size, |
39 int min_size) OVERRIDE; | 40 int min_size) OVERRIDE; |
40 virtual bool OnReadCompleted(int request_id, | 41 virtual bool OnReadCompleted(int request_id, |
41 int* bytes_read) OVERRIDE; | 42 int* bytes_read, |
| 43 bool* defer) OVERRIDE; |
42 virtual bool OnResponseCompleted(int request_id, | 44 virtual bool OnResponseCompleted(int request_id, |
43 const net::URLRequestStatus& status, | 45 const net::URLRequestStatus& status, |
44 const std::string& security_info) OVERRIDE; | 46 const std::string& security_info) OVERRIDE; |
45 virtual void OnRequestClosed() OVERRIDE; | 47 virtual void OnRequestClosed() OVERRIDE; |
46 virtual void OnDataDownloaded(int request_id, | 48 virtual void OnDataDownloaded(int request_id, |
47 int bytes_downloaded) OVERRIDE; | 49 int bytes_downloaded) OVERRIDE; |
48 | 50 |
49 private: | 51 private: |
50 virtual ~DoomedResourceHandler(); | 52 virtual ~DoomedResourceHandler(); |
51 | 53 |
52 scoped_refptr<ResourceHandler> old_handler_; | 54 scoped_refptr<ResourceHandler> old_handler_; |
53 | 55 |
54 DISALLOW_COPY_AND_ASSIGN(DoomedResourceHandler); | 56 DISALLOW_COPY_AND_ASSIGN(DoomedResourceHandler); |
55 }; | 57 }; |
56 | 58 |
57 #endif // CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ | 59 #endif // CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ |
OLD | NEW |