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

Side by Side Diff: chrome/browser/extensions/extension_downloads_api.h

Issue 7847027: DownloadId (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_EXTENSION_DOWNLOADS_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 bool save_as; 114 bool save_as;
115 base::ListValue* extra_headers; 115 base::ListValue* extra_headers;
116 std::string method; 116 std::string method;
117 std::string post_body; 117 std::string post_body;
118 ResourceDispatcherHost* rdh; 118 ResourceDispatcherHost* rdh;
119 const content::ResourceContext* resource_context; 119 const content::ResourceContext* resource_context;
120 int render_process_host_id; 120 int render_process_host_id;
121 int render_view_host_routing_id; 121 int render_view_host_routing_id;
122 }; 122 };
123 void BeginDownloadOnIOThread(); 123 void BeginDownloadOnIOThread();
124 void OnStarted(int dl_id, net::Error error); 124 void OnStarted(DownloadId dl_id, net::Error error);
125 void RespondOnUIThread(int dl_id, net::Error error); 125 void RespondOnUIThread(int dl_id, net::Error error);
126 126
127 scoped_ptr<IOData> iodata_; 127 scoped_ptr<IOData> iodata_;
128 128
129 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction); 129 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction);
130 }; 130 };
131 131
132 class DownloadsSearchFunction : public SyncDownloadsFunction { 132 class DownloadsSearchFunction : public SyncDownloadsFunction {
133 public: 133 public:
134 DownloadsSearchFunction(); 134 DownloadsSearchFunction();
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 typedef base::hash_map<int, DownloadItem*> ItemMap; 268 typedef base::hash_map<int, DownloadItem*> ItemMap;
269 typedef std::set<int> DownloadIdSet; 269 typedef std::set<int> DownloadIdSet;
270 270
271 Profile* profile_; 271 Profile* profile_;
272 DownloadManager* manager_; 272 DownloadManager* manager_;
273 DownloadIdSet downloads_; 273 DownloadIdSet downloads_;
274 274
275 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); 275 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter);
276 }; 276 };
277 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_ 277 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_DOWNLOADS_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_util.h ('k') | chrome/browser/extensions/extension_downloads_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698