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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 93 |
94 protected: | 94 protected: |
95 virtual ~DownloadsDownloadFunction(); | 95 virtual ~DownloadsDownloadFunction(); |
96 | 96 |
97 private: | 97 private: |
98 void OnStarted( | 98 void OnStarted( |
99 const base::FilePath& creator_suggested_filename, | 99 const base::FilePath& creator_suggested_filename, |
100 extensions::api::downloads::FilenameConflictAction | 100 extensions::api::downloads::FilenameConflictAction |
101 creator_conflict_action, | 101 creator_conflict_action, |
102 content::DownloadItem* item, | 102 content::DownloadItem* item, |
103 net::Error error); | 103 content::DownloadInterruptReason interrupt_reason); |
104 | 104 |
105 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction); | 105 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction); |
106 }; | 106 }; |
107 | 107 |
108 class DownloadsSearchFunction : public SyncExtensionFunction { | 108 class DownloadsSearchFunction : public SyncExtensionFunction { |
109 public: | 109 public: |
110 DECLARE_EXTENSION_FUNCTION("downloads.search", DOWNLOADS_SEARCH) | 110 DECLARE_EXTENSION_FUNCTION("downloads.search", DOWNLOADS_SEARCH) |
111 DownloadsSearchFunction(); | 111 DownloadsSearchFunction(); |
112 virtual bool RunImpl() OVERRIDE; | 112 virtual bool RunImpl() OVERRIDE; |
113 | 113 |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 391 |
392 Profile* profile_; | 392 Profile* profile_; |
393 AllDownloadItemNotifier notifier_; | 393 AllDownloadItemNotifier notifier_; |
394 std::set<const extensions::Extension*> shelf_disabling_extensions_; | 394 std::set<const extensions::Extension*> shelf_disabling_extensions_; |
395 content::NotificationRegistrar registrar_; | 395 content::NotificationRegistrar registrar_; |
396 | 396 |
397 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); | 397 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); |
398 }; | 398 }; |
399 | 399 |
400 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ | 400 #endif // CHROME_BROWSER_EXTENSIONS_API_DOWNLOADS_DOWNLOADS_API_H_ |
OLD | NEW |