diff options
author | ahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-14 21:14:28 +0000 |
---|---|---|
committer | ahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-14 21:14:28 +0000 |
commit | 1138ff02f706d8c777d7e503534871d85a921ece (patch) | |
tree | 8cc7662d900fb81c3915fe6e7cc7c128760e5b2e /content/public/browser | |
parent | 688303b4a7593cfc23afd1b599d0d0e3165ec51b (diff) | |
download | chromium_src-1138ff02f706d8c777d7e503534871d85a921ece.zip chromium_src-1138ff02f706d8c777d7e503534871d85a921ece.tar.gz chromium_src-1138ff02f706d8c777d7e503534871d85a921ece.tar.bz2 |
Test file errors in downloads.
Uses an error injection technique to simulate hard-to-reproduce file system errors.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/9426029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser')
-rw-r--r-- | content/public/browser/download_id.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/content/public/browser/download_id.h b/content/public/browser/download_id.h index 96ecc63..797c752 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) { |