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

Unified Diff: content/browser/download/download_interrupt_reasons_impl.cc

Issue 9639001: Move download interrupt reasons to content\public (the enum that's used by chrome). The rest keep i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: nits Created 8 years, 9 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/browser/download/download_interrupt_reasons_impl.cc
===================================================================
--- content/browser/download/download_interrupt_reasons_impl.cc (revision 125463)
+++ content/browser/download/download_interrupt_reasons_impl.cc (working copy)
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/download/interrupt_reasons.h"
+#include "content/browser/download/download_interrupt_reasons_impl.h"
#include "base/logging.h"
+namespace content {
+
#define FILE_ERROR_TO_INTERRUPT_REASON(n, d) \
case net::ERR_##n: return DOWNLOAD_INTERRUPT_REASON_FILE_##d;
@@ -15,7 +17,7 @@
#define SERVER_ERROR_TO_INTERRUPT_REASON(n, d) \
case net::ERR_##n: return DOWNLOAD_INTERRUPT_REASON_SERVER_##d;
-InterruptReason ConvertNetErrorToInterruptReason(
+DownloadInterruptReason ConvertNetErrorToInterruptReason(
net::Error net_error, DownloadInterruptSource source) {
switch (net_error) {
// File errors.
@@ -88,7 +90,7 @@
#undef NET_ERROR_TO_INTERRUPT_REASON
#undef SERVER_ERROR_TO_INTERRUPT_REASON
-std::string InterruptReasonDebugString(InterruptReason error) {
+std::string InterruptReasonDebugString(DownloadInterruptReason error) {
#define INTERRUPT_REASON(name, value) \
case DOWNLOAD_INTERRUPT_REASON_##name: return #name;
@@ -96,7 +98,7 @@
switch (error) {
INTERRUPT_REASON(NONE, 0)
-#include "content/browser/download/interrupt_reason_values.h"
+#include "content/public/browser/download_interrupt_reason_values.h"
default:
break;
@@ -106,3 +108,5 @@
return "Unknown error";
}
+
+} // namespace content
« no previous file with comments | « content/browser/download/download_interrupt_reasons_impl.h ('k') | content/browser/download/download_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698