| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 ~AsyncResourceHandler() override; | 39 ~AsyncResourceHandler() override; |
| 40 | 40 |
| 41 bool OnMessageReceived(const IPC::Message& message) override; | 41 bool OnMessageReceived(const IPC::Message& message) override; |
| 42 | 42 |
| 43 // ResourceHandler implementation: | 43 // ResourceHandler implementation: |
| 44 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, | 44 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, |
| 45 ResourceResponse* response, | 45 ResourceResponse* response, |
| 46 bool* defer) override; | 46 bool* defer) override; |
| 47 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; | 47 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; |
| 48 bool OnWillStart(const GURL& url, bool* defer) override; | 48 bool OnWillStart(const GURL& url, bool* defer) override; |
| 49 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override; | |
| 50 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, | 49 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
| 51 int* buf_size, | 50 int* buf_size, |
| 52 int min_size) override; | 51 int min_size) override; |
| 53 bool OnReadCompleted(int bytes_read, bool* defer) override; | 52 bool OnReadCompleted(int bytes_read, bool* defer) override; |
| 54 void OnResponseCompleted(const net::URLRequestStatus& status, | 53 void OnResponseCompleted(const net::URLRequestStatus& status, |
| 55 const std::string& security_info, | 54 const std::string& security_info, |
| 56 bool* defer) override; | 55 bool* defer) override; |
| 57 void OnDataDownloaded(int bytes_downloaded) override; | 56 void OnDataDownloaded(int bytes_downloaded) override; |
| 58 | 57 |
| 59 private: | 58 private: |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 98 |
| 100 int64_t reported_transfer_size_; | 99 int64_t reported_transfer_size_; |
| 101 int64_t reported_encoded_body_length_; | 100 int64_t reported_encoded_body_length_; |
| 102 | 101 |
| 103 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 102 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 104 }; | 103 }; |
| 105 | 104 |
| 106 } // namespace content | 105 } // namespace content |
| 107 | 106 |
| 108 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 107 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |