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

Unified Diff: content/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/browser/download/interrupt_reason_values.h ('k') | content/browser/download/interrupt_reasons.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/interrupt_reasons.h
===================================================================
--- content/browser/download/interrupt_reasons.h (revision 125463)
+++ content/browser/download/interrupt_reasons.h (working copy)
@@ -1,38 +0,0 @@
-// 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.
-
-#ifndef CHROME_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
-#define CHROME_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
-#pragma once
-
-#include <string>
-
-#include "content/common/content_export.h"
-#include "net/base/net_errors.h"
-
-enum InterruptReason {
- DOWNLOAD_INTERRUPT_REASON_NONE = 0,
-
-#define INTERRUPT_REASON(name, value) DOWNLOAD_INTERRUPT_REASON_##name = value,
-
-#include "content/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
-};
-
-// Safe to call from any thread.
-InterruptReason CONTENT_EXPORT ConvertNetErrorToInterruptReason(
- net::Error file_error, DownloadInterruptSource source);
-
-std::string CONTENT_EXPORT InterruptReasonDebugString(InterruptReason error);
-
-#endif // CHROME_BROWSER_DOWNLOAD_INTERRUPT_REASONS_H_
« no previous file with comments | « content/browser/download/interrupt_reason_values.h ('k') | content/browser/download/interrupt_reasons.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698