| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSION_DOWNLOADS_API_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/file_path.h" | 13 #include "base/file_path.h" |
| 14 #include "base/memory/singleton.h" | 14 #include "base/memory/singleton.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "chrome/browser/extensions/extension_function.h" | 16 #include "chrome/browser/extensions/extension_function.h" |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 void DispatchEvent(const char* event_name, base::Value* json_arg); | 267 void DispatchEvent(const char* event_name, base::Value* json_arg); |
| 268 typedef base::hash_map<int, DownloadItem*> ItemMap; | 268 typedef base::hash_map<int, DownloadItem*> ItemMap; |
| 269 typedef std::set<int> DownloadIdSet; | 269 typedef std::set<int> DownloadIdSet; |
| 270 | 270 |
| 271 Profile* profile_; | 271 Profile* profile_; |
| 272 DownloadManager* manager_; | 272 DownloadManager* manager_; |
| 273 DownloadIdSet downloads_; | 273 DownloadIdSet downloads_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); | 275 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); |
| 276 }; | 276 }; |
| 277 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_ | 277 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
| OLD | NEW |