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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 DownloadsShowFunction(); | 160 DownloadsShowFunction(); |
161 virtual bool RunImpl() OVERRIDE; | 161 virtual bool RunImpl() OVERRIDE; |
162 | 162 |
163 protected: | 163 protected: |
164 virtual ~DownloadsShowFunction(); | 164 virtual ~DownloadsShowFunction(); |
165 | 165 |
166 private: | 166 private: |
167 DISALLOW_COPY_AND_ASSIGN(DownloadsShowFunction); | 167 DISALLOW_COPY_AND_ASSIGN(DownloadsShowFunction); |
168 }; | 168 }; |
169 | 169 |
170 class DownloadsOpenFunction : public AsyncExtensionFunction { | 170 class DownloadsOpenFunction : public SyncExtensionFunction { |
171 public: | 171 public: |
172 DECLARE_EXTENSION_FUNCTION_NAME("downloads.open"); | 172 DECLARE_EXTENSION_FUNCTION_NAME("downloads.open"); |
173 DownloadsOpenFunction(); | 173 DownloadsOpenFunction(); |
174 virtual bool RunImpl() OVERRIDE; | 174 virtual bool RunImpl() OVERRIDE; |
175 | 175 |
176 protected: | 176 protected: |
177 virtual ~DownloadsOpenFunction(); | 177 virtual ~DownloadsOpenFunction(); |
178 | 178 |
179 private: | 179 private: |
180 DISALLOW_COPY_AND_ASSIGN(DownloadsOpenFunction); | 180 DISALLOW_COPY_AND_ASSIGN(DownloadsOpenFunction); |
(...skipping 58 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 |