| 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 15 matching lines...) Expand all Loading... |
| 26 class ResourceContext; | 26 class ResourceContext; |
| 27 class ResourceDispatcherHost; | 27 class ResourceDispatcherHost; |
| 28 } | 28 } |
| 29 | 29 |
| 30 // Functions in the chrome.downloads namespace facilitate | 30 // Functions in the chrome.downloads namespace facilitate |
| 31 // controlling downloads from extensions. See the full API doc at | 31 // controlling downloads from extensions. See the full API doc at |
| 32 // http://goo.gl/6hO1n | 32 // http://goo.gl/6hO1n |
| 33 | 33 |
| 34 namespace download_extension_errors { | 34 namespace download_extension_errors { |
| 35 | 35 |
| 36 // Errors that can be returned through chrome.extension.lastError.message. | 36 // Errors that can be returned through chrome.runtime.lastError.message. |
| 37 extern const char kGenericError[]; | 37 extern const char kGenericError[]; |
| 38 extern const char kIconNotFoundError[]; | 38 extern const char kIconNotFoundError[]; |
| 39 extern const char kInvalidDangerTypeError[]; | 39 extern const char kInvalidDangerTypeError[]; |
| 40 extern const char kInvalidFilterError[]; | 40 extern const char kInvalidFilterError[]; |
| 41 extern const char kInvalidOperationError[]; | 41 extern const char kInvalidOperationError[]; |
| 42 extern const char kInvalidOrderByError[]; | 42 extern const char kInvalidOrderByError[]; |
| 43 extern const char kInvalidQueryLimit[]; | 43 extern const char kInvalidQueryLimit[]; |
| 44 extern const char kInvalidStateError[]; | 44 extern const char kInvalidStateError[]; |
| 45 extern const char kInvalidURLError[]; | 45 extern const char kInvalidURLError[]; |
| 46 extern const char kNotImplementedError[]; | 46 extern const char kNotImplementedError[]; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 private: | 239 private: |
| 240 void DispatchEvent(const char* event_name, base::Value* json_arg); | 240 void DispatchEvent(const char* event_name, base::Value* json_arg); |
| 241 | 241 |
| 242 Profile* profile_; | 242 Profile* profile_; |
| 243 AllDownloadItemNotifier notifier_; | 243 AllDownloadItemNotifier notifier_; |
| 244 | 244 |
| 245 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); | 245 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ | 248 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ |
| OLD | NEW |