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

Side by Side Diff: chrome/browser/download/download_extension_api.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 IOData(); 128 IOData();
129 ~IOData(); 129 ~IOData();
130 130
131 GURL url; 131 GURL url;
132 string16 filename; 132 string16 filename;
133 bool save_as; 133 bool save_as;
134 base::ListValue* extra_headers; 134 base::ListValue* extra_headers;
135 std::string method; 135 std::string method;
136 std::string post_body; 136 std::string post_body;
137 ResourceDispatcherHost* rdh; 137 ResourceDispatcherHost* rdh;
138 const content::ResourceContext* resource_context; 138 content::ResourceContext* resource_context;
139 int render_process_host_id; 139 int render_process_host_id;
140 int render_view_host_routing_id; 140 int render_view_host_routing_id;
141 }; 141 };
142 void BeginDownloadOnIOThread(); 142 void BeginDownloadOnIOThread();
143 void OnStarted(content::DownloadId dl_id, net::Error error); 143 void OnStarted(content::DownloadId dl_id, net::Error error);
144 144
145 scoped_ptr<IOData> iodata_; 145 scoped_ptr<IOData> iodata_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction); 147 DISALLOW_COPY_AND_ASSIGN(DownloadsDownloadFunction);
148 }; 148 };
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 typedef base::hash_map<int, content::DownloadItem*> ItemMap; 316 typedef base::hash_map<int, content::DownloadItem*> ItemMap;
317 typedef std::set<int> DownloadIdSet; 317 typedef std::set<int> DownloadIdSet;
318 318
319 Profile* profile_; 319 Profile* profile_;
320 content::DownloadManager* manager_; 320 content::DownloadManager* manager_;
321 DownloadIdSet downloads_; 321 DownloadIdSet downloads_;
322 322
323 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); 323 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter);
324 }; 324 };
325 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 325 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gview_request_interceptor_unittest.cc ('k') | chrome/browser/download/download_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698