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

Side by Side Diff: content/browser/download/download_manager_impl.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 (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_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // this session, downloads initialized from the history system, and 170 // this session, downloads initialized from the history system, and
171 // "save page as" downloads. 171 // "save page as" downloads.
172 DownloadMap downloads_; 172 DownloadMap downloads_;
173 173
174 int history_size_; 174 int history_size_;
175 175
176 // True if the download manager has been initialized and requires a shutdown. 176 // True if the download manager has been initialized and requires a shutdown.
177 bool shutdown_needed_; 177 bool shutdown_needed_;
178 178
179 // Observers that want to be notified of changes to the set of downloads. 179 // Observers that want to be notified of changes to the set of downloads.
180 ObserverList<Observer> observers_; 180 base::ObserverList<Observer> observers_;
181 181
182 // The current active browser context. 182 // The current active browser context.
183 BrowserContext* browser_context_; 183 BrowserContext* browser_context_;
184 184
185 // Allows an embedder to control behavior. Guaranteed to outlive this object. 185 // Allows an embedder to control behavior. Guaranteed to outlive this object.
186 DownloadManagerDelegate* delegate_; 186 DownloadManagerDelegate* delegate_;
187 187
188 net::NetLog* net_log_; 188 net::NetLog* net_log_;
189 189
190 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_; 190 base::WeakPtrFactory<DownloadManagerImpl> weak_factory_;
191 191
192 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl); 192 DISALLOW_COPY_AND_ASSIGN(DownloadManagerImpl);
193 }; 193 };
194 194
195 } // namespace content 195 } // namespace content
196 196
197 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_ 197 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_item_impl.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698