Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Side by Side Diff: content/browser/loader/detachable_resource_handler.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler.h ('k') | content/browser/loader/detachable_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698