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

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

Issue 257983002: Move downloads API to extensions namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error for unittest Created 6 years, 7 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
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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 extern const char kNotResumable[]; 59 extern const char kNotResumable[];
60 extern const char kOpenPermission[]; 60 extern const char kOpenPermission[];
61 extern const char kShelfDisabled[]; 61 extern const char kShelfDisabled[];
62 extern const char kShelfPermission[]; 62 extern const char kShelfPermission[];
63 extern const char kTooManyListeners[]; 63 extern const char kTooManyListeners[];
64 extern const char kUnexpectedDeterminer[]; 64 extern const char kUnexpectedDeterminer[];
65 extern const char kUserGesture[]; 65 extern const char kUserGesture[];
66 66
67 } // namespace download_extension_errors 67 } // namespace download_extension_errors
68 68
69 namespace extensions {
69 70
70 class DownloadedByExtension : public base::SupportsUserData::Data { 71 class DownloadedByExtension : public base::SupportsUserData::Data {
71 public: 72 public:
72 static DownloadedByExtension* Get(content::DownloadItem* item); 73 static DownloadedByExtension* Get(content::DownloadItem* item);
73 74
74 DownloadedByExtension(content::DownloadItem* item, 75 DownloadedByExtension(content::DownloadItem* item,
75 const std::string& id, 76 const std::string& id,
76 const std::string& name); 77 const std::string& name);
77 78
78 const std::string& id() const { return id_; } 79 const std::string& id() const { return id_; }
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 std::set<const extensions::Extension*> shelf_disabling_extensions_; 396 std::set<const extensions::Extension*> shelf_disabling_extensions_;
396 397
397 // Listen to extension unloaded notifications. 398 // Listen to extension unloaded notifications.
398 ScopedObserver<extensions::ExtensionRegistry, 399 ScopedObserver<extensions::ExtensionRegistry,
399 extensions::ExtensionRegistryObserver> 400 extensions::ExtensionRegistryObserver>
400 extension_registry_observer_; 401 extension_registry_observer_;
401 402
402 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); 403 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter);
403 }; 404 };
404 405
406 } // namespace extensions
407
405 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ 408 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_service.cc ('k') | chrome/browser/extensions/api/downloads/downloads_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698