Index: content/shell/browser/layout_test/layout_test_download_manager_delegate.h |
diff --git a/content/shell/browser/layout_test/layout_test_download_manager_delegate.h b/content/shell/browser/layout_test/layout_test_download_manager_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..dc18a2185acb15ec7a0ec98e68e1f87ac0ef4d3a |
--- /dev/null |
+++ b/content/shell/browser/layout_test/layout_test_download_manager_delegate.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_H_ |
+#define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_H_ |
+ |
+#include "base/callback_forward.h" |
+#include "base/compiler_specific.h" |
+#include "base/memory/weak_ptr.h" |
+#include "content/public/browser/download_manager_delegate.h" |
+#include "content/shell/browser/shell_download_manager_delegate.h" |
+ |
+namespace content { |
+ |
+class DownloadItem; |
+ |
+class LayoutTestDownloadManagerDelegate : public ShellDownloadManagerDelegate { |
+ public: |
+ LayoutTestDownloadManagerDelegate(); |
+ virtual ~LayoutTestDownloadManagerDelegate(); |
+ |
+ // ShellDownloadManagerDelegate implementation. |
+ virtual bool ShouldOpenDownload( |
+ DownloadItem* item, |
+ const DownloadOpenDelayedCallback& callback) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(LayoutTestDownloadManagerDelegate); |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_DOWNLOAD_MANAGER_DELEGATE_H_ |