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

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

Issue 10836003: chrome.downloads.open() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r171777 Created 8 years 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/downloads/downloads_api.cc » ('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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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/downloads/downloads_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698