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

Side by Side Diff: content/public/browser/download_item.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 // Each download is represented by a DownloadItem, and all DownloadItems 5 // Each download is represented by a DownloadItem, and all DownloadItems
6 // are owned by the DownloadManager which maintains a global list of all 6 // are owned by the DownloadManager which maintains a global list of all
7 // downloads. DownloadItems are created when a user initiates a download, 7 // downloads. DownloadItems are created when a user initiates a download,
8 // and exist for the duration of the browser life time. 8 // and exist for the duration of the browser life time.
9 // 9 //
10 // Download observers: 10 // Download observers:
11 // DownloadItem::Observer: 11 // DownloadItem::Observer:
12 // - allows observers to receive notifications about one download from start 12 // - allows observers to receive notifications about one download from start
13 // to completion 13 // to completion
14 // Use AddObserver() / RemoveObserver() on the appropriate download object to 14 // Use AddObserver() / RemoveObserver() on the appropriate download object to
15 // receive state updates. 15 // receive state updates.
16 16
17 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 17 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
18 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 18 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
19 #pragma once
20 19
21 #include <map> 20 #include <map>
22 #include <string> 21 #include <string>
23 #include <vector> 22 #include <vector>
24 23
25 #include "base/file_path.h" 24 #include "base/file_path.h"
26 #include "base/string16.h" 25 #include "base/string16.h"
27 #include "content/public/browser/download_danger_type.h" 26 #include "content/public/browser/download_danger_type.h"
28 #include "content/public/browser/download_interrupt_reasons.h" 27 #include "content/public/browser/download_interrupt_reasons.h"
29 #include "content/public/common/page_transition_types.h" 28 #include "content/public/common/page_transition_types.h"
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 virtual void SetExternalData(const void* key, ExternalData* data) = 0; 366 virtual void SetExternalData(const void* key, ExternalData* data) = 0;
368 367
369 virtual std::string DebugString(bool verbose) const = 0; 368 virtual std::string DebugString(bool verbose) const = 0;
370 369
371 virtual void MockDownloadOpenForTesting() = 0; 370 virtual void MockDownloadOpenForTesting() = 0;
372 }; 371 };
373 372
374 } // namespace content 373 } // namespace content
375 374
376 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_ 375 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_ITEM_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_interrupt_reasons.h ('k') | content/public/browser/download_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698