| 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 CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 typedef std::map<int, base::DictionaryValue*> ItemJsonMap; | 247 typedef std::map<int, base::DictionaryValue*> ItemJsonMap; |
| 248 typedef std::map<int, OnChangedStat*> OnChangedStatMap; | 248 typedef std::map<int, OnChangedStat*> OnChangedStatMap; |
| 249 | 249 |
| 250 void DispatchEvent(const char* event_name, base::Value* json_arg); | 250 void DispatchEvent(const char* event_name, base::Value* json_arg); |
| 251 | 251 |
| 252 Profile* profile_; | 252 Profile* profile_; |
| 253 content::DownloadManager* manager_; | 253 content::DownloadManager* manager_; |
| 254 ItemMap downloads_; | 254 ItemMap downloads_; |
| 255 ItemJsonMap item_jsons_; | 255 ItemJsonMap item_jsons_; |
| 256 OnChangedStatMap on_changed_stats_; | 256 OnChangedStatMap on_changed_stats_; |
| 257 bool incognito_; |
| 257 | 258 |
| 258 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); | 259 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); |
| 259 }; | 260 }; |
| 260 | 261 |
| 261 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ | 262 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ |
| OLD | NEW |