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