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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // ResourceController implementation: | 66 // ResourceController implementation: |
67 void Resume() override; | 67 void Resume() override; |
68 void Cancel() override; | 68 void Cancel() override; |
69 void CancelAndIgnore() override; | 69 void CancelAndIgnore() override; |
70 void CancelWithError(int error_code) override; | 70 void CancelWithError(int error_code) override; |
71 | 71 |
72 private: | 72 private: |
73 scoped_ptr<ResourceHandler> next_handler_; | 73 scoped_ptr<ResourceHandler> next_handler_; |
74 scoped_refptr<net::IOBuffer> read_buffer_; | 74 scoped_refptr<net::IOBuffer> read_buffer_; |
75 | 75 |
76 scoped_ptr<base::OneShotTimer<DetachableResourceHandler> > detached_timer_; | 76 scoped_ptr<base::OneShotTimer> detached_timer_; |
77 base::TimeDelta cancel_delay_; | 77 base::TimeDelta cancel_delay_; |
78 | 78 |
79 bool is_deferred_; | 79 bool is_deferred_; |
80 bool is_finished_; | 80 bool is_finished_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); | 82 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace content | 85 } // namespace content |
86 | 86 |
87 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ | 87 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ |
OLD | NEW |