| 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_LAYERED_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_LAYERED_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "content/browser/renderer_host/resource_handler.h" | 9 #include "content/browser/loader/resource_handler.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 | 13 |
| 14 // A ResourceHandler that simply delegates all calls to a next handler. This | 14 // A ResourceHandler that simply delegates all calls to a next handler. This |
| 15 // class is intended to be subclassed. | 15 // class is intended to be subclassed. |
| 16 class CONTENT_EXPORT LayeredResourceHandler : public ResourceHandler { | 16 class CONTENT_EXPORT LayeredResourceHandler : public ResourceHandler { |
| 17 public: | 17 public: |
| 18 explicit LayeredResourceHandler(scoped_ptr<ResourceHandler> next_handler); | 18 explicit LayeredResourceHandler(scoped_ptr<ResourceHandler> next_handler); |
| 19 virtual ~LayeredResourceHandler(); | 19 virtual ~LayeredResourceHandler(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 37 virtual bool OnResponseCompleted(int request_id, | 37 virtual bool OnResponseCompleted(int request_id, |
| 38 const net::URLRequestStatus& status, | 38 const net::URLRequestStatus& status, |
| 39 const std::string& security_info) OVERRIDE; | 39 const std::string& security_info) OVERRIDE; |
| 40 virtual void OnDataDownloaded(int request_id, int bytes_downloaded) OVERRIDE; | 40 virtual void OnDataDownloaded(int request_id, int bytes_downloaded) OVERRIDE; |
| 41 | 41 |
| 42 scoped_ptr<ResourceHandler> next_handler_; | 42 scoped_ptr<ResourceHandler> next_handler_; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace content | 45 } // namespace content |
| 46 | 46 |
| 47 #endif // CONTENT_BROWSER_RENDERER_HOST_LAYERED_RESOURCE_HANDLER_H_ | 47 #endif // CONTENT_BROWSER_LOADER_LAYERED_RESOURCE_HANDLER_H_ |
| OLD | NEW |