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

Side by Side Diff: content/public/browser/download_item.h

Issue 10805020: Kill DownloadItem::IsOtr() (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 8 years, 4 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
« no previous file with comments | « content/browser/download/save_package.cc ('k') | no next file » | 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 // Each download is represented by a DownloadItem, and all DownloadItems 5 // Each download is represented by a DownloadItem, and all DownloadItems
6 // are owned by the DownloadManager which maintains a global list of all 6 // are owned by the DownloadManager which maintains a global list of all
7 // downloads. DownloadItems are created when a user initiates a download, 7 // downloads. DownloadItems are created when a user initiates a download,
8 // and exist for the duration of the browser life time. 8 // and exist for the duration of the browser life time.
9 // 9 //
10 // Download observers: 10 // Download observers:
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 virtual SafetyState GetSafetyState() const = 0; 253 virtual SafetyState GetSafetyState() const = 0;
254 // Why |safety_state_| is not SAFE. 254 // Why |safety_state_| is not SAFE.
255 virtual DownloadDangerType GetDangerType() const = 0; 255 virtual DownloadDangerType GetDangerType() const = 0;
256 virtual bool IsDangerous() const = 0; 256 virtual bool IsDangerous() const = 0;
257 257
258 virtual bool GetAutoOpened() = 0; 258 virtual bool GetAutoOpened() = 0;
259 virtual FilePath GetTargetName() const = 0; 259 virtual FilePath GetTargetName() const = 0;
260 virtual const FilePath& GetForcedFilePath() const = 0; 260 virtual const FilePath& GetForcedFilePath() const = 0;
261 virtual bool HasUserGesture() const = 0; 261 virtual bool HasUserGesture() const = 0;
262 virtual PageTransition GetTransitionType() const = 0; 262 virtual PageTransition GetTransitionType() const = 0;
263 virtual bool IsOtr() const = 0;
264 virtual bool IsTemporary() const = 0; 263 virtual bool IsTemporary() const = 0;
265 virtual void SetIsTemporary(bool temporary) = 0; 264 virtual void SetIsTemporary(bool temporary) = 0;
266 virtual void SetOpened(bool opened) = 0; 265 virtual void SetOpened(bool opened) = 0;
267 virtual bool GetOpened() const = 0; 266 virtual bool GetOpened() const = 0;
268 267
269 virtual const std::string& GetLastModifiedTime() const = 0; 268 virtual const std::string& GetLastModifiedTime() const = 0;
270 virtual const std::string& GetETag() const = 0; 269 virtual const std::string& GetETag() const = 0;
271 270
272 virtual DownloadInterruptReason GetLastReason() const = 0; 271 virtual DownloadInterruptReason GetLastReason() const = 0;
273 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; 272 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0;
(...skipping 16 matching lines...) Expand all
290 virtual FilePath GetUserVerifiedFilePath() const = 0; 289 virtual FilePath GetUserVerifiedFilePath() const = 0;
291 290
292 virtual std::string DebugString(bool verbose) const = 0; 291 virtual std::string DebugString(bool verbose) const = 0;
293 292
294 virtual void MockDownloadOpenForTesting() = 0; 293 virtual void MockDownloadOpenForTesting() = 0;
295 }; 294 };
296 295
297 } // namespace content 296 } // namespace content
298 297
299 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 298 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_package.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698