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

Side by Side Diff: content/browser/download/download_interrupt_reasons_impl.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_INTERRUPT_REASONS_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_INTERRUPT_REASONS_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_INTERRUPT_REASONS_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_INTERRUPT_REASONS_IMPL_H_
7 #pragma once
8 7
9 #include "content/public/browser/download_interrupt_reasons.h" 8 #include "content/public/browser/download_interrupt_reasons.h"
10 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
11 10
12 namespace content { 11 namespace content {
13 12
14 enum DownloadInterruptSource { 13 enum DownloadInterruptSource {
15 DOWNLOAD_INTERRUPT_FROM_DISK, 14 DOWNLOAD_INTERRUPT_FROM_DISK,
16 DOWNLOAD_INTERRUPT_FROM_NETWORK, 15 DOWNLOAD_INTERRUPT_FROM_NETWORK,
17 DOWNLOAD_INTERRUPT_FROM_SERVER, 16 DOWNLOAD_INTERRUPT_FROM_SERVER,
18 DOWNLOAD_INTERRUPT_FROM_USER, 17 DOWNLOAD_INTERRUPT_FROM_USER,
19 DOWNLOAD_INTERRUPT_FROM_CRASH 18 DOWNLOAD_INTERRUPT_FROM_CRASH
20 }; 19 };
21 20
22 // Safe to call from any thread. 21 // Safe to call from any thread.
23 DownloadInterruptReason CONTENT_EXPORT ConvertNetErrorToInterruptReason( 22 DownloadInterruptReason CONTENT_EXPORT ConvertNetErrorToInterruptReason(
24 net::Error file_error, DownloadInterruptSource source); 23 net::Error file_error, DownloadInterruptSource source);
25 24
26 } // namespace content 25 } // namespace content
27 26
28 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_INTERRUPT_REASONS_IMPL_H_ 27 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_INTERRUPT_REASONS_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/download/download_file_manager.h ('k') | content/browser/download/download_item_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698