OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/resource_context.h" | 11 #include "content/browser/resource_context.h" |
| 12 #include "media/audio/audio_manager.h" |
12 | 13 |
13 class ChromeBlobStorageContext; | 14 class ChromeBlobStorageContext; |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 | 17 |
17 class ShellURLRequestContextGetter; | 18 class ShellURLRequestContextGetter; |
18 | 19 |
19 class ShellResourceContext : public content::ResourceContext { | 20 class ShellResourceContext : public content::ResourceContext { |
20 public: | 21 public: |
21 ShellResourceContext( | 22 ShellResourceContext( |
22 ShellURLRequestContextGetter* getter, | 23 ShellURLRequestContextGetter* getter, |
23 ChromeBlobStorageContext* blob_storage_context); | 24 ChromeBlobStorageContext* blob_storage_context, |
| 25 AudioManager* audio_manager); |
24 virtual ~ShellResourceContext(); | 26 virtual ~ShellResourceContext(); |
25 | 27 |
26 private: | 28 private: |
27 virtual void EnsureInitialized() const OVERRIDE; | 29 virtual void EnsureInitialized() const OVERRIDE; |
28 | 30 |
29 void InitializeInternal(); | 31 void InitializeInternal(); |
30 | 32 |
31 scoped_refptr<ShellURLRequestContextGetter> getter_; | 33 scoped_refptr<ShellURLRequestContextGetter> getter_; |
32 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 34 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 35 scoped_refptr<AudioManager> audio_manager_; |
33 | 36 |
34 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 37 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
35 }; | 38 }; |
36 | 39 |
37 } // namespace content | 40 } // namespace content |
38 | 41 |
39 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ | 42 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ |
OLD | NEW |