| OLD | NEW |
| 1 // Copyright (c) 2011 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 CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ |
| 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | |
| 15 #include "chrome/browser/profiles/profile_keyed_service.h" | 14 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 16 | 15 |
| 17 class ChromeDownloadManagerDelegate; | 16 class ChromeDownloadManagerDelegate; |
| 18 class Profile; | 17 class Profile; |
| 19 | 18 |
| 20 namespace content { | 19 namespace content { |
| 21 class DownloadManager; | 20 class DownloadManager; |
| 22 } | 21 } |
| 23 | 22 |
| 24 // Owning class for DownloadManager (content) and | 23 // Owning class for DownloadManager (content) and |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // callbacks. | 68 // callbacks. |
| 70 scoped_refptr<content::DownloadManager> manager_; | 69 scoped_refptr<content::DownloadManager> manager_; |
| 71 scoped_refptr<ChromeDownloadManagerDelegate> manager_delegate_; | 70 scoped_refptr<ChromeDownloadManagerDelegate> manager_delegate_; |
| 72 | 71 |
| 73 std::vector<OnManagerCreatedCallback> on_manager_created_callbacks_; | 72 std::vector<OnManagerCreatedCallback> on_manager_created_callbacks_; |
| 74 | 73 |
| 75 DISALLOW_COPY_AND_ASSIGN(DownloadService); | 74 DISALLOW_COPY_AND_ASSIGN(DownloadService); |
| 76 }; | 75 }; |
| 77 | 76 |
| 78 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ | 77 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ |
| OLD | NEW |