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

Side by Side Diff: content/browser/download/download_id.cc

Issue 8372073: Merge 8401001 r107836 into branch 912: Fix history importing by delaying DownloadManager creation. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 years, 1 month 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/download_id.h ('k') | content/browser/download/download_id_factory.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/download/download_id.h" 5 #include "content/browser/download/download_id.h"
6 6
7 #include <string>
8
9 #include "base/stringprintf.h"
10
11 std::string DownloadId::DebugString() const {
12 return base::StringPrintf("%p:%d", domain_, local_id_);
13 }
14
7 std::ostream& operator<<(std::ostream& out, const DownloadId& global_id) { 15 std::ostream& operator<<(std::ostream& out, const DownloadId& global_id) {
8 return out << global_id.manager_ << ":" << global_id.local(); 16 return out << global_id.DebugString();
9 } 17 }
OLDNEW
« no previous file with comments | « content/browser/download/download_id.h ('k') | content/browser/download/download_id_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698