| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ | |
| 6 #define CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 #include "content/public/browser/resource_context.h" | |
| 11 | |
| 12 namespace content { | |
| 13 | |
| 14 class ShellURLRequestContextGetter; | |
| 15 | |
| 16 class ShellResourceContext : public ResourceContext { | |
| 17 public: | |
| 18 explicit ShellResourceContext(ShellURLRequestContextGetter* getter); | |
| 19 virtual ~ShellResourceContext(); | |
| 20 | |
| 21 private: | |
| 22 // ResourceContext implementation: | |
| 23 virtual net::HostResolver* GetHostResolver() OVERRIDE; | |
| 24 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | |
| 25 | |
| 26 scoped_refptr<ShellURLRequestContextGetter> getter_; | |
| 27 | |
| 28 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | |
| 29 }; | |
| 30 | |
| 31 } // namespace content | |
| 32 | |
| 33 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ | |
| OLD | NEW |