OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_
H_ | 5 #ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_
H_ |
6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_
H_ | 6 #define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_
H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" |
10 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
11 #include "content/public/browser/download_manager_delegate.h" | 12 #include "content/public/browser/download_manager_delegate.h" |
12 #include "content/shell/browser/shell_download_manager_delegate.h" | 13 #include "content/shell/browser/shell_download_manager_delegate.h" |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 | 16 |
16 class DownloadItem; | 17 class DownloadItem; |
17 | 18 |
18 class LayoutTestDownloadManagerDelegate : public ShellDownloadManagerDelegate { | 19 class LayoutTestDownloadManagerDelegate : public ShellDownloadManagerDelegate { |
19 public: | 20 public: |
20 LayoutTestDownloadManagerDelegate(); | 21 LayoutTestDownloadManagerDelegate(); |
21 ~LayoutTestDownloadManagerDelegate() override; | 22 ~LayoutTestDownloadManagerDelegate() override; |
22 | 23 |
23 // ShellDownloadManagerDelegate implementation. | 24 // ShellDownloadManagerDelegate implementation. |
24 bool ShouldOpenDownload(DownloadItem* item, | 25 bool ShouldOpenDownload(DownloadItem* item, |
25 const DownloadOpenDelayedCallback& callback) override; | 26 const DownloadOpenDelayedCallback& callback) override; |
26 | 27 |
27 private: | 28 private: |
28 DISALLOW_COPY_AND_ASSIGN(LayoutTestDownloadManagerDelegate); | 29 DISALLOW_COPY_AND_ASSIGN(LayoutTestDownloadManagerDelegate); |
29 }; | 30 }; |
30 | 31 |
31 } // namespace content | 32 } // namespace content |
32 | 33 |
33 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGA
TE_H_ | 34 #endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGA
TE_H_ |
OLD | NEW |