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

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

Issue 9425014: Fix most of the downloads api in incognito profiles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 7 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 virtual ~DownloadsSearchFunction(); 166 virtual ~DownloadsSearchFunction();
167 167
168 // DownloadsFunctionInterface: 168 // DownloadsFunctionInterface:
169 virtual bool ParseArgs() OVERRIDE; 169 virtual bool ParseArgs() OVERRIDE;
170 virtual bool RunInternal() OVERRIDE; 170 virtual bool RunInternal() OVERRIDE;
171 171
172 private: 172 private:
173 bool ParseOrderBy(const base::Value& order_by_value); 173 bool ParseOrderBy(const base::Value& order_by_value);
174 174
175 scoped_ptr<DownloadQuery> query_; 175 scoped_ptr<DownloadQuery> query_;
176 bool include_on_the_record_;
177 bool include_incognito_;
176 int get_id_; 178 int get_id_;
177 bool has_get_id_; 179 bool has_get_id_;
178 180
179 DISALLOW_COPY_AND_ASSIGN(DownloadsSearchFunction); 181 DISALLOW_COPY_AND_ASSIGN(DownloadsSearchFunction);
180 }; 182 };
181 183
182 class DownloadsPauseFunction : public SyncDownloadsFunction { 184 class DownloadsPauseFunction : public SyncDownloadsFunction {
183 public: 185 public:
184 DECLARE_EXTENSION_FUNCTION_NAME("experimental.downloads.pause"); 186 DECLARE_EXTENSION_FUNCTION_NAME("experimental.downloads.pause");
185 187
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 content::DownloadManager* manager_; 374 content::DownloadManager* manager_;
373 ItemMap downloads_; 375 ItemMap downloads_;
374 ItemJsonMap item_jsons_; 376 ItemJsonMap item_jsons_;
375 STLValueDeleter<ItemJsonMap> delete_item_jsons_; 377 STLValueDeleter<ItemJsonMap> delete_item_jsons_;
376 OnChangedStatMap on_changed_stats_; 378 OnChangedStatMap on_changed_stats_;
377 STLValueDeleter<OnChangedStatMap> delete_on_changed_stats_; 379 STLValueDeleter<OnChangedStatMap> delete_on_changed_stats_;
378 380
379 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter); 381 DISALLOW_COPY_AND_ASSIGN(ExtensionDownloadsEventRouter);
380 }; 382 };
381 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_ 383 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_EXTENSION_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/download/download_extension_api.cc » ('j') | chrome/browser/download/download_extension_api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698