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

Unified Diff: content/shell/browser/layout_test/layout_test_download_manager_delegate.h

Issue 648673002: Content Shell: Introduce LayoutTestDownloadManagerDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@637843003
Patch Set: Ugh. Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698