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

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

Issue 23496076: WIP - Refactor programmatic downloads Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_item_model_unittest.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