| 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_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 public ResourceMessageDelegate { | 29 public ResourceMessageDelegate { |
| 30 public: | 30 public: |
| 31 AsyncResourceHandler(net::URLRequest* request, | 31 AsyncResourceHandler(net::URLRequest* request, |
| 32 ResourceDispatcherHostImpl* rdh); | 32 ResourceDispatcherHostImpl* rdh); |
| 33 virtual ~AsyncResourceHandler(); | 33 virtual ~AsyncResourceHandler(); |
| 34 | 34 |
| 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 35 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 36 | 36 |
| 37 // ResourceHandler implementation: | 37 // ResourceHandler implementation: |
| 38 virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE; | 38 virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE; |
| 39 virtual bool OnRequestRedirected(const GURL& new_url, | 39 virtual bool OnRequestRedirected(const net::RedirectInfo& redirect_info, |
| 40 ResourceResponse* response, | 40 ResourceResponse* response, |
| 41 bool* defer) OVERRIDE; | 41 bool* defer) OVERRIDE; |
| 42 virtual bool OnResponseStarted(ResourceResponse* response, | 42 virtual bool OnResponseStarted(ResourceResponse* response, |
| 43 bool* defer) OVERRIDE; | 43 bool* defer) OVERRIDE; |
| 44 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE; | 44 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE; |
| 45 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE; | 45 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE; |
| 46 virtual bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, | 46 virtual bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
| 47 int* buf_size, | 47 int* buf_size, |
| 48 int min_size) OVERRIDE; | 48 int min_size) OVERRIDE; |
| 49 virtual bool OnReadCompleted(int bytes_read, bool* defer) OVERRIDE; | 49 virtual bool OnReadCompleted(int bytes_read, bool* defer) OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 77 bool sent_first_data_msg_; | 77 bool sent_first_data_msg_; |
| 78 | 78 |
| 79 int64_t reported_transfer_size_; | 79 int64_t reported_transfer_size_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 81 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace content | 84 } // namespace content |
| 85 | 85 |
| 86 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 86 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |