| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| 6 #define CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 6 #define CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "content/public/browser/resource_dispatcher_host_delegate.h" | 9 #include "content/public/browser/resource_dispatcher_host_delegate.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 class ShellResourceDispatcherHostDelegate | 13 class ShellResourceDispatcherHostDelegate |
| 14 : public content::ResourceDispatcherHostDelegate { | 14 : public ResourceDispatcherHostDelegate { |
| 15 public: | 15 public: |
| 16 ShellResourceDispatcherHostDelegate(); | 16 ShellResourceDispatcherHostDelegate(); |
| 17 virtual ~ShellResourceDispatcherHostDelegate(); | 17 virtual ~ShellResourceDispatcherHostDelegate(); |
| 18 | 18 |
| 19 // ResourceDispatcherHostDelegate implementation. | 19 // ResourceDispatcherHostDelegate implementation. |
| 20 virtual bool AcceptAuthRequest(net::URLRequest* request, | 20 virtual bool AcceptAuthRequest(net::URLRequest* request, |
| 21 net::AuthChallengeInfo* auth_info) OVERRIDE; | 21 net::AuthChallengeInfo* auth_info) OVERRIDE; |
| 22 virtual content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 22 virtual ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
| 23 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; | 23 net::AuthChallengeInfo* auth_info, net::URLRequest* request) OVERRIDE; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(ShellResourceDispatcherHostDelegate); | 26 DISALLOW_COPY_AND_ASSIGN(ShellResourceDispatcherHostDelegate); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 } // namespace content | 29 } // namespace content |
| 30 | 30 |
| 31 #endif // CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ | 31 #endif // CONTENT_SHELL_SHELL_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ |
| OLD | NEW |