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

Side by Side Diff: content/public/browser/download_manager.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 // The DownloadManager object manages the process of downloading, including 5 // The DownloadManager object manages the process of downloading, including
6 // updates to the history system and providing the information for displaying 6 // updates to the history system and providing the information for displaying
7 // the downloads view in the Destinations tab. There is one DownloadManager per 7 // the downloads view in the Destinations tab. There is one DownloadManager per
8 // active browser context in Chrome. 8 // active browser context in Chrome.
9 // 9 //
10 // Download observers: 10 // Download observers:
11 // Objects that are interested in notifications about new downloads, or progress 11 // Objects that are interested in notifications about new downloads, or progress
12 // updates for a given download must implement one of the download observer 12 // updates for a given download must implement one of the download observer
13 // interfaces: 13 // interfaces:
14 // DownloadManager::Observer: 14 // DownloadManager::Observer:
15 // - allows observers, primarily views, to be notified when changes to the 15 // - allows observers, primarily views, to be notified when changes to the
16 // set of all downloads (such as new downloads, or deletes) occur 16 // set of all downloads (such as new downloads, or deletes) occur
17 // Use AddObserver() / RemoveObserver() on the appropriate download object to 17 // Use AddObserver() / RemoveObserver() on the appropriate download object to
18 // receive state updates. 18 // receive state updates.
19 // 19 //
20 // Download state persistence: 20 // Download state persistence:
21 // The DownloadManager uses the history service for storing persistent 21 // The DownloadManager uses the history service for storing persistent
22 // information about the state of all downloads. The history system maintains a 22 // information about the state of all downloads. The history system maintains a
23 // separate table for this called 'downloads'. At the point that the 23 // separate table for this called 'downloads'. At the point that the
24 // DownloadManager is constructed, we query the history service for the state of 24 // DownloadManager is constructed, we query the history service for the state of
25 // all persisted downloads. 25 // all persisted downloads.
26 26
27 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 27 #ifndef CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
28 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 28 #define CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
29 #pragma once
30 29
31 #include <string> 30 #include <string>
32 #include <vector> 31 #include <vector>
33 32
34 #include "base/basictypes.h" 33 #include "base/basictypes.h"
35 #include "base/callback.h" 34 #include "base/callback.h"
36 #include "base/file_path.h" 35 #include "base/file_path.h"
37 #include "base/gtest_prod_util.h" 36 #include "base/gtest_prod_util.h"
38 #include "base/sequenced_task_runner_helpers.h" 37 #include "base/sequenced_task_runner_helpers.h"
39 #include "base/time.h" 38 #include "base/time.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 protected: 247 protected:
249 virtual ~DownloadManager() {} 248 virtual ~DownloadManager() {}
250 249
251 private: 250 private:
252 friend class base::RefCountedThreadSafe<DownloadManager>; 251 friend class base::RefCountedThreadSafe<DownloadManager>;
253 }; 252 };
254 253
255 } // namespace content 254 } // namespace content
256 255
257 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_ 256 #endif // CONTENT_PUBLIC_BROWSER_DOWNLOAD_MANAGER_H_
OLDNEW
« no previous file with comments | « content/public/browser/download_item.h ('k') | content/public/browser/download_manager_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698