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.
5 #ifndef CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_
6 #define CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "content/public/browser/resource_context.h"
14 class ShellURLRequestContextGetter
;
16 class ShellResourceContext
: public ResourceContext
{
18 explicit ShellResourceContext(ShellURLRequestContextGetter
* getter
);
19 virtual ~ShellResourceContext();
22 // ResourceContext implementation:
23 virtual net::HostResolver
* GetHostResolver() OVERRIDE
;
24 virtual net::URLRequestContext
* GetRequestContext() OVERRIDE
;
26 scoped_refptr
<ShellURLRequestContextGetter
> getter_
;
28 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext
);
31 } // namespace content
33 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_