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

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

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
« no previous file with comments | « content/public/browser/download_interrupt_reason_values.h ('k') | content/public/browser/download_item.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_interrupt_reasons.h
===================================================================
--- content/public/browser/download_interrupt_reasons.h (revision 125463)
+++ content/public/browser/download_interrupt_reasons.h (working copy)
@@ -2,37 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
-#define CHROME_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
+#ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
+#define CONTENT_PUBLIC_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
#pragma once
#include <string>
#include "content/common/content_export.h"
-#include "net/base/net_errors.h"
-enum InterruptReason {
+namespace content {
+
+enum DownloadInterruptReason {
DOWNLOAD_INTERRUPT_REASON_NONE = 0,
#define INTERRUPT_REASON(name, value) DOWNLOAD_INTERRUPT_REASON_##name = value,
-#include "content/browser/download/interrupt_reason_values.h"
+#include "content/public/browser/download_interrupt_reason_values.h"
#undef INTERRUPT_REASON
};
-enum DownloadInterruptSource {
- DOWNLOAD_INTERRUPT_FROM_DISK,
- DOWNLOAD_INTERRUPT_FROM_NETWORK,
- DOWNLOAD_INTERRUPT_FROM_SERVER,
- DOWNLOAD_INTERRUPT_FROM_USER,
- DOWNLOAD_INTERRUPT_FROM_CRASH
-};
+std::string CONTENT_EXPORT InterruptReasonDebugString(
+ DownloadInterruptReason error);
-// Safe to call from any thread.
-InterruptReason CONTENT_EXPORT ConvertNetErrorToInterruptReason(
- net::Error file_error, DownloadInterruptSource source);
+} // namespace content
-std::string CONTENT_EXPORT InterruptReasonDebugString(InterruptReason error);
-
-#endif // CHROME_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
+#endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
« no previous file with comments | « content/public/browser/download_interrupt_reason_values.h ('k') | content/public/browser/download_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698