summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_id_factory.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 00:35:42 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-27 00:35:42 +0000
commit98e814064fa88ec31318ce94d8f20c9fba0e92ff (patch)
treea00e0dbcf23ea0d8d797e360ea422bea346f9b00 /content/browser/download/download_id_factory.cc
parentf9fac85d18493f8b83152d11652bbf4a24f02338 (diff)
downloadchromium_src-98e814064fa88ec31318ce94d8f20c9fba0e92ff.zip
chromium_src-98e814064fa88ec31318ce94d8f20c9fba0e92ff.tar.gz
chromium_src-98e814064fa88ec31318ce94d8f20c9fba0e92ff.tar.bz2
Get rid of DownloadIdFactory and instead get the next id from DownloadManagerDelegate. I've also moved DownloadId to the public directory and into the content namespace.
BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9169036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_id_factory.cc')
-rw-r--r--content/browser/download/download_id_factory.cc17
1 files changed, 0 insertions, 17 deletions
diff --git a/content/browser/download/download_id_factory.cc b/content/browser/download/download_id_factory.cc
deleted file mode 100644
index 6b0797f..0000000
--- a/content/browser/download/download_id_factory.cc
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) 2011 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.
-
-#include "content/browser/download/download_id_factory.h"
-
-#include "content/browser/download/download_id.h"
-
-DownloadIdFactory::DownloadIdFactory(DownloadId::Domain domain)
- : domain_(domain),
- next_id_(0) {
-}
-
-DownloadId DownloadIdFactory::GetNextId() {
- base::AutoLock lock(lock_);
- return DownloadId(domain_, next_id_++);
-}