| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_ |
| 6 #define CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "content/browser/content_resource_dispatcher_host_delegate.h" |
| 10 #include "content/public/browser/resource_dispatcher_host.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 class ResourceDispatcherHostImpl; |
| 15 |
| 16 // Wrapper around ResourceDispatcherHostImpl that wraps a |
| 17 // ContentResourceDispatcherHostDelegate around the |
| 18 // ResourceDispatcherHostDelegate supplied by the content client. |
| 19 class ContentResourceDispatcherHost : public ResourceDispatcherHost { |
| 20 public: |
| 21 ContentResourceDispatcherHost(); |
| 22 ~ContentResourceDispatcherHost() override; |
| 23 |
| 24 void SetChild(ResourceDispatcherHostImpl* child); |
| 25 |
| 26 // ResourceDispatcherHost: |
| 27 void SetDelegate(ResourceDispatcherHostDelegate* delegate) override; |
| 28 void SetAllowCrossOriginAuthPrompt(bool value) override; |
| 29 void ClearLoginDelegateForRequest(net::URLRequest* request) override; |
| 30 |
| 31 private: |
| 32 ResourceDispatcherHostImpl* child_; |
| 33 std::unique_ptr<ContentResourceDispatcherHostDelegate> |
| 34 content_resource_dispatcher_host_delegate_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(ContentResourceDispatcherHost); |
| 37 }; |
| 38 |
| 39 } // content |
| 40 |
| 41 #endif // CONTENT_BROWSER_CONTENT_RESOURCE_DISPATCHER_HOST_H_ |
| OLD | NEW |