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

Side by Side Diff: chrome/browser/extensions/api/downloads/downloads_api.h

Issue 11745015: Update references to the extension messaging APIs to point to the "runtime" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/messaging/message_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/messaging/message_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698