diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-05 15:01:36 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-05 15:01:36 +0000 |
commit | e3503ac87055ea7d404d0576fdb972447f3db48c (patch) | |
tree | 75071d151575dafc2f174aa756fb47bb33adc815 /content/shell/shell_resource_dispatcher_host_delegate.h | |
parent | 4fc2940db542dee44f8474d2eab8fdd0e814c110 (diff) | |
download | chromium_src-e3503ac87055ea7d404d0576fdb972447f3db48c.zip chromium_src-e3503ac87055ea7d404d0576fdb972447f3db48c.tar.gz chromium_src-e3503ac87055ea7d404d0576fdb972447f3db48c.tar.bz2 |
Mac content shell: HTTP auth.
BUG=120526
TEST=HTTP auth works
Review URL: https://chromiumcodereview.appspot.com/9980002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130918 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/shell/shell_resource_dispatcher_host_delegate.h')
-rw-r--r-- | content/shell/shell_resource_dispatcher_host_delegate.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/content/shell/shell_resource_dispatcher_host_delegate.h b/content/shell/shell_resource_dispatcher_host_delegate.h new file mode 100644 index 0000000..ec537c5 --- /dev/null +++ b/content/shell/shell_resource_dispatcher_host_delegate.h @@ -0,0 +1,32 @@ +// Copyright (c) 2012 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_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ +#define CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ +#pragma once + +#include "base/compiler_specific.h" +#include "content/public/browser/resource_dispatcher_host_delegate.h" + +namespace content { + +class ShellResourceDispatcherHostDelegate + : public content::ResourceDispatcherHostDelegate { + public: + ShellResourceDispatcherHostDelegate(); + virtual ~ShellResourceDispatcherHostDelegate(); + + // ResourceDispatcherHostDelegate implementation. + virtual bool AcceptAuthRequest(net::URLRequest* request, + net::AuthChallengeInfo* auth_info) OVERRIDE; + virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( + net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; + + private: + DISALLOW_COPY_AND_ASSIGN(ShellResourceDispatcherHostDelegate); +}; + +} // namespace content + +#endif // CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |