| 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/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "content/browser/renderer_host/resource_handler.h" | 10 #include "content/browser/renderer_host/resource_handler.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 ResourceResponse* response, | 35 ResourceResponse* response, |
| 36 bool* defer) OVERRIDE; | 36 bool* defer) OVERRIDE; |
| 37 virtual bool OnWillStart(int request_id, | 37 virtual bool OnWillStart(int request_id, |
| 38 const GURL& url, | 38 const GURL& url, |
| 39 bool* defer) OVERRIDE; | 39 bool* defer) OVERRIDE; |
| 40 virtual bool OnWillRead(int request_id, | 40 virtual bool OnWillRead(int request_id, |
| 41 net::IOBuffer** buf, | 41 net::IOBuffer** buf, |
| 42 int* buf_size, | 42 int* buf_size, |
| 43 int min_size) OVERRIDE; | 43 int min_size) OVERRIDE; |
| 44 virtual bool OnReadCompleted(int request_id, | 44 virtual bool OnReadCompleted(int request_id, |
| 45 int* bytes_read, | 45 int bytes_read, |
| 46 bool* defer) OVERRIDE; | 46 bool* defer) OVERRIDE; |
| 47 virtual bool OnResponseCompleted(int request_id, | 47 virtual bool OnResponseCompleted(int request_id, |
| 48 const net::URLRequestStatus& status, | 48 const net::URLRequestStatus& status, |
| 49 const std::string& security_info) OVERRIDE; | 49 const std::string& security_info) OVERRIDE; |
| 50 virtual void OnDataDownloaded(int request_id, | 50 virtual void OnDataDownloaded(int request_id, |
| 51 int bytes_downloaded) OVERRIDE; | 51 int bytes_downloaded) OVERRIDE; |
| 52 | 52 |
| 53 private: | 53 private: |
| 54 scoped_ptr<ResourceHandler> old_handler_; | 54 scoped_ptr<ResourceHandler> old_handler_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(DoomedResourceHandler); | 56 DISALLOW_COPY_AND_ASSIGN(DoomedResourceHandler); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace content | 59 } // namespace content |
| 60 | 60 |
| 61 #endif // CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ | 61 #endif // CONTENT_BROWSER_RENDERER_HOST_DOOMED_RESOURCE_HANDLER_H_ |
| OLD | NEW |