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 class ChromeBlobStorageContext; | 13 class ChromeBlobStorageContext; |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class ShellURLRequestContextGetter; | 17 class ShellURLRequestContextGetter; |
18 | 18 |
19 class ShellResourceContext : public content::ResourceContext { | 19 class ShellResourceContext : public content::ResourceContext { |
20 public: | 20 public: |
21 explicit ShellResourceContext(ShellURLRequestContextGetter* getter); | 21 explicit ShellResourceContext(ShellURLRequestContextGetter* getter); |
22 virtual ~ShellResourceContext(); | 22 virtual ~ShellResourceContext(); |
23 | 23 |
24 private: | 24 private: |
25 // ResourceContext implementation: | 25 // ResourceContext implementation: |
26 virtual net::HostResolver* GetHostResolver() OVERRIDE; | 26 virtual net::HostResolver* GetHostResolver() OVERRIDE; |
27 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; | 27 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; |
28 virtual HostZoomMap* GetHostZoomMap() OVERRIDE; | |
29 virtual MediaObserver* GetMediaObserver() OVERRIDE; | 28 virtual MediaObserver* GetMediaObserver() OVERRIDE; |
30 virtual media_stream::MediaStreamManager* GetMediaStreamManager() OVERRIDE; | 29 virtual media_stream::MediaStreamManager* GetMediaStreamManager() OVERRIDE; |
31 virtual AudioManager* GetAudioManager() OVERRIDE; | 30 virtual AudioManager* GetAudioManager() OVERRIDE; |
32 | 31 |
33 scoped_refptr<ShellURLRequestContextGetter> getter_; | 32 scoped_refptr<ShellURLRequestContextGetter> getter_; |
34 | 33 |
35 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 34 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
36 }; | 35 }; |
37 | 36 |
38 } // namespace content | 37 } // namespace content |
39 | 38 |
40 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ | 39 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ |
OLD | NEW |