| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_DETACHABLE_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 cancel_delay_ = cancel_delay; | 47 cancel_delay_ = cancel_delay; |
| 48 } | 48 } |
| 49 | 49 |
| 50 // ResourceHandler implementation: | 50 // ResourceHandler implementation: |
| 51 void SetController(ResourceController* controller) override; | 51 void SetController(ResourceController* controller) override; |
| 52 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, | 52 bool OnRequestRedirected(const net::RedirectInfo& redirect_info, |
| 53 ResourceResponse* response, | 53 ResourceResponse* response, |
| 54 bool* defer) override; | 54 bool* defer) override; |
| 55 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; | 55 bool OnResponseStarted(ResourceResponse* response, bool* defer) override; |
| 56 bool OnWillStart(const GURL& url, bool* defer) override; | 56 bool OnWillStart(const GURL& url, bool* defer) override; |
| 57 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override; | |
| 58 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, | 57 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, |
| 59 int* buf_size, | 58 int* buf_size, |
| 60 int min_size) override; | 59 int min_size) override; |
| 61 bool OnReadCompleted(int bytes_read, bool* defer) override; | 60 bool OnReadCompleted(int bytes_read, bool* defer) override; |
| 62 void OnResponseCompleted(const net::URLRequestStatus& status, | 61 void OnResponseCompleted(const net::URLRequestStatus& status, |
| 63 const std::string& security_info, | 62 const std::string& security_info, |
| 64 bool* defer) override; | 63 bool* defer) override; |
| 65 void OnDataDownloaded(int bytes_downloaded) override; | 64 void OnDataDownloaded(int bytes_downloaded) override; |
| 66 | 65 |
| 67 // ResourceController implementation: | 66 // ResourceController implementation: |
| (...skipping 11 matching lines...) Expand all Loading... |
| 79 | 78 |
| 80 bool is_deferred_; | 79 bool is_deferred_; |
| 81 bool is_finished_; | 80 bool is_finished_; |
| 82 | 81 |
| 83 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); | 82 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); |
| 84 }; | 83 }; |
| 85 | 84 |
| 86 } // namespace content | 85 } // namespace content |
| 87 | 86 |
| 88 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ | 87 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
| OLD | NEW |