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

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, 5 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 // 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 virtual SafetyState GetSafetyState() const = 0; 276 virtual SafetyState GetSafetyState() const = 0;
277 // Why |safety_state_| is not SAFE. 277 // Why |safety_state_| is not SAFE.
278 virtual DownloadDangerType GetDangerType() const = 0; 278 virtual DownloadDangerType GetDangerType() const = 0;
279 virtual bool IsDangerous() const = 0; 279 virtual bool IsDangerous() const = 0;
280 280
281 virtual bool GetAutoOpened() = 0; 281 virtual bool GetAutoOpened() = 0;
282 virtual FilePath GetTargetName() const = 0; 282 virtual FilePath GetTargetName() const = 0;
283 virtual const FilePath& GetForcedFilePath() const = 0; 283 virtual const FilePath& GetForcedFilePath() const = 0;
284 virtual bool HasUserGesture() const = 0; 284 virtual bool HasUserGesture() const = 0;
285 virtual content::PageTransition GetTransitionType() const = 0; 285 virtual content::PageTransition GetTransitionType() const = 0;
286 virtual bool IsOtr() const = 0;
287 virtual bool IsTemporary() const = 0; 286 virtual bool IsTemporary() const = 0;
288 virtual void SetIsTemporary(bool temporary) = 0; 287 virtual void SetIsTemporary(bool temporary) = 0;
289 virtual void SetOpened(bool opened) = 0; 288 virtual void SetOpened(bool opened) = 0;
290 virtual bool GetOpened() const = 0; 289 virtual bool GetOpened() const = 0;
291 290
292 virtual const std::string& GetLastModifiedTime() const = 0; 291 virtual const std::string& GetLastModifiedTime() const = 0;
293 virtual const std::string& GetETag() const = 0; 292 virtual const std::string& GetETag() const = 0;
294 293
295 virtual DownloadInterruptReason GetLastReason() const = 0; 294 virtual DownloadInterruptReason GetLastReason() const = 0;
296 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0; 295 virtual DownloadPersistentStoreInfo GetPersistentStoreInfo() const = 0;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 virtual void SetExternalData(const void* key, ExternalData* data) = 0; 328 virtual void SetExternalData(const void* key, ExternalData* data) = 0;
330 329
331 virtual std::string DebugString(bool verbose) const = 0; 330 virtual std::string DebugString(bool verbose) const = 0;
332 331
333 virtual void MockDownloadOpenForTesting() = 0; 332 virtual void MockDownloadOpenForTesting() = 0;
334 }; 333 };
335 334
336 } // namespace content 335 } // namespace content
337 336
338 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 337 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698