summaryrefslogtreecommitdiffstats
path: root/content/shell/browser/layout_test
diff options
context:
space:
mode:
authormkwst <mkwst@chromium.org>2014-10-09 03:17:00 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-09 10:17:13 +0000
commit002d02909368b7067cc3df9149c5e46ce445861c (patch)
tree94ce7dd7cb9c80726537c2a53cde3d7c7c639ff6 /content/shell/browser/layout_test
parent3b325eb8e19993b67ee28cb5d7fe3f8c10207777 (diff)
downloadchromium_src-002d02909368b7067cc3df9149c5e46ce445861c.zip
chromium_src-002d02909368b7067cc3df9149c5e46ce445861c.tar.gz
chromium_src-002d02909368b7067cc3df9149c5e46ce445861c.tar.bz2
Content Shell: LayoutTestResourceDispatcherHostDelegate
This patch moves the DRT-based bits of ShellResourceDispatcherHostDelegate out into a layout-test-specific class. BUG=420994 R=jochen@chromium.org Review URL: https://codereview.chromium.org/641593002 Cr-Commit-Position: refs/heads/master@{#298838}
Diffstat (limited to 'content/shell/browser/layout_test')
-rw-r--r--content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc26
-rw-r--r--content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h30
2 files changed, 56 insertions, 0 deletions
diff --git a/content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc b/content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc
new file mode 100644
index 0000000..c96b127
--- /dev/null
+++ b/content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.cc
@@ -0,0 +1,26 @@
+// 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.
+
+#include "content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h"
+
+#include "base/command_line.h"
+#include "content/shell/common/shell_switches.h"
+
+namespace content {
+
+LayoutTestResourceDispatcherHostDelegate::
+ LayoutTestResourceDispatcherHostDelegate() {
+}
+
+LayoutTestResourceDispatcherHostDelegate::
+ ~LayoutTestResourceDispatcherHostDelegate() {
+}
+
+ResourceDispatcherHostLoginDelegate*
+LayoutTestResourceDispatcherHostDelegate::CreateLoginDelegate(
+ net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
+ return NULL;
+}
+
+} // namespace content
diff --git a/content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h b/content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h
new file mode 100644
index 0000000..b5985c0
--- /dev/null
+++ b/content/shell/browser/layout_test/layout_test_resource_dispatcher_host_delegate.h
@@ -0,0 +1,30 @@
+// 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_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
+#define CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
+
+#include "base/callback.h"
+#include "base/compiler_specific.h"
+#include "content/shell/browser/shell_resource_dispatcher_host_delegate.h"
+
+namespace content {
+
+class LayoutTestResourceDispatcherHostDelegate
+ : public ShellResourceDispatcherHostDelegate {
+ public:
+ LayoutTestResourceDispatcherHostDelegate();
+ virtual ~LayoutTestResourceDispatcherHostDelegate();
+
+ // ResourceDispatcherHostDelegate implementation.
+ virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
+ net::AuthChallengeInfo* auth_info, net::URLRequest* request) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(LayoutTestResourceDispatcherHostDelegate);
+};
+
+} // namespace content
+
+#endif // CONTENT_SHELL_BROWSER_LAYOUT_TEST_LAYOUT_TEST_RESOURCE_DISPATCHER_HOST_DELEGATE_H_