| 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_BUFFERED_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual void Cancel() OVERRIDE; | 54 virtual void Cancel() OVERRIDE; |
| 55 virtual void CancelAndIgnore() OVERRIDE; | 55 virtual void CancelAndIgnore() OVERRIDE; |
| 56 virtual void CancelWithError(int error_code) OVERRIDE; | 56 virtual void CancelWithError(int error_code) OVERRIDE; |
| 57 | 57 |
| 58 bool ProcessResponse(bool* defer); | 58 bool ProcessResponse(bool* defer); |
| 59 | 59 |
| 60 bool ShouldSniffContent(); | 60 bool ShouldSniffContent(); |
| 61 bool DetermineMimeType(); | 61 bool DetermineMimeType(); |
| 62 bool SelectNextHandler(bool* defer); | 62 bool SelectNextHandler(bool* defer); |
| 63 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler); | 63 bool UseAlternateNextHandler(scoped_ptr<ResourceHandler> handler); |
| 64 scoped_ptr<ResourceHandler> MaybeInterceptAsStream(); |
| 64 | 65 |
| 65 bool ReplayReadCompleted(bool* defer); | 66 bool ReplayReadCompleted(bool* defer); |
| 66 void CallReplayReadCompleted(); | 67 void CallReplayReadCompleted(); |
| 67 | 68 |
| 68 bool MustDownload(); | 69 bool MustDownload(); |
| 69 bool HasSupportingPlugin(bool* is_stale); | 70 bool HasSupportingPlugin(bool* is_stale); |
| 70 | 71 |
| 71 // Copies data from |read_buffer_| to |next_handler_|. | 72 // Copies data from |read_buffer_| to |next_handler_|. |
| 72 bool CopyReadBufferToNextHandler(int request_id); | 73 bool CopyReadBufferToNextHandler(int request_id); |
| 73 | 74 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 bool must_download_is_set_; | 108 bool must_download_is_set_; |
| 108 | 109 |
| 109 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_; | 110 base::WeakPtrFactory<BufferedResourceHandler> weak_ptr_factory_; |
| 110 | 111 |
| 111 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); | 112 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); |
| 112 }; | 113 }; |
| 113 | 114 |
| 114 } // namespace content | 115 } // namespace content |
| 115 | 116 |
| 116 #endif // CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ | 117 #endif // CONTENT_BROWSER_LOADER_BUFFERED_RESOURCE_HANDLER_H_ |
| OLD | NEW |