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

Side by Side Diff: chrome/browser/image_decoder.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
« no previous file with comments | « chrome/browser/extensions/webstore_installer.h ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_IMAGE_DECODER_H_ 5 #ifndef CHROME_BROWSER_IMAGE_DECODER_H_
6 #define CHROME_BROWSER_IMAGE_DECODER_H_ 6 #define CHROME_BROWSER_IMAGE_DECODER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 RequestMap image_request_id_map_; 143 RequestMap image_request_id_map_;
144 144
145 // Protects |image_request_id_map_| and |image_request_id_counter_|. 145 // Protects |image_request_id_map_| and |image_request_id_counter_|.
146 base::Lock map_lock_; 146 base::Lock map_lock_;
147 147
148 // The UtilityProcessHost requests are sent to. 148 // The UtilityProcessHost requests are sent to.
149 base::WeakPtr<content::UtilityProcessHost> utility_process_host_; 149 base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
150 150
151 // Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed, 151 // Calls StopBatchMode() after |kBatchModeTimeoutSeconds| have elapsed,
152 // unless a new decoding request resets the timer. 152 // unless a new decoding request resets the timer.
153 scoped_ptr<base::DelayTimer<ImageDecoder>> batch_mode_timer_; 153 scoped_ptr<base::DelayTimer> batch_mode_timer_;
154 154
155 DISALLOW_COPY_AND_ASSIGN(ImageDecoder); 155 DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
156 }; 156 };
157 157
158 #endif // CHROME_BROWSER_IMAGE_DECODER_H_ 158 #endif // CHROME_BROWSER_IMAGE_DECODER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/webstore_installer.h ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698