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

Unified Diff: content/public/browser/download_id.h

Issue 9426029: Test file errors in downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test that injects an error on the 2nd write. 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/download_id.h
diff --git a/content/public/browser/download_id.h b/content/public/browser/download_id.h
index 96ecc63ce0bda3a22d245f4d5b2daaf9959a73ff..797c752ad3d6019c3d769bf82d05f51c4adedb8b 100644
--- a/content/public/browser/download_id.h
+++ b/content/public/browser/download_id.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -20,11 +20,13 @@ namespace content {
// sessions, but their local() field is.
class DownloadId {
public:
- static DownloadId Invalid() { return DownloadId(NULL, -1); }
+ static DownloadId Invalid() { return DownloadId(); }
// Domain separates spaces of local ids.
typedef const void* Domain;
+ DownloadId() : domain_(NULL), local_id_(-1) {}
+
DownloadId(Domain domain, int32 local_id)
: domain_(domain),
local_id_(local_id) {

Powered by Google App Engine
This is Rietveld 408576698