| 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_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_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> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 private: | 110 private: |
| 111 DownloadsFunctionName function_; | 111 DownloadsFunctionName function_; |
| 112 | 112 |
| 113 DISALLOW_COPY_AND_ASSIGN(AsyncDownloadsFunction); | 113 DISALLOW_COPY_AND_ASSIGN(AsyncDownloadsFunction); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 class DownloadsDownloadFunction : public AsyncDownloadsFunction { | 116 class DownloadsDownloadFunction : public AsyncDownloadsFunction { |
| 117 public: | 117 public: |
| 118 DownloadsDownloadFunction(); | 118 DownloadsDownloadFunction(); |
| 119 virtual ~DownloadsDownloadFunction(); | 119 virtual ~DownloadsDownloadFunction(); |
| 120 DECLARE_EXTENSION_FUNCTION_NAME("experimental.downloads.download"); | 120 DECLARE_EXTENSION_FUNCTION_NAME("downloads.download"); |
| 121 | 121 |
| 122 protected: | 122 protected: |
| 123 virtual bool ParseArgs() OVERRIDE; | 123 virtual bool ParseArgs() OVERRIDE; |
| 124 virtual bool RunInternal() OVERRIDE; | 124 virtual bool RunInternal() OVERRIDE; |
| 125 | 125 |
| 126 private: | 126 private: |
| 127 struct IOData { | 127 struct IOData { |
| 128 public: | 128 public: |
| 129 IOData(); | 129 IOData(); |
| 130 ~IOData(); | 130 ~IOData(); |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 content::DownloadManager* manager_; | 334 content::DownloadManager* manager_; |
| 335 ItemMap downloads_; | 335 ItemMap downloads_; |
| 336 ItemJsonMap item_jsons_; | 336 ItemJsonMap item_jsons_; |
| 337 STLValueDeleter<ItemJsonMap> delete_item_jsons_; | 337 STLValueDeleter<ItemJsonMap> delete_item_jsons_; |
| 338 OnChangedStatMap on_changed_stats_; | 338 OnChangedStatMap on_changed_stats_; |
| 339 STLValueDeleter<OnChangedStatMap> delete_on_changed_stats_; | 339 STLValueDeleter<OnChangedStatMap> delete_on_changed_stats_; |
| 340 | 340 |
| 341 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); | 341 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); |
| 342 }; | 342 }; |
| 343 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ | 343 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ |
| OLD | NEW |