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 #include "content/shell/shell_resource_context.h" | 5 #include "content/shell/shell_resource_context.h" |
6 | 6 |
7 #include "content/browser/chrome_blob_storage_context.h" | 7 #include "content/browser/chrome_blob_storage_context.h" |
8 #include "content/shell/shell_url_request_context_getter.h" | 8 #include "content/shell/shell_url_request_context_getter.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
11 | 11 |
12 ShellResourceContext::ShellResourceContext( | 12 ShellResourceContext::ShellResourceContext( |
13 ShellURLRequestContextGetter* getter, | 13 ShellURLRequestContextGetter* getter, |
14 ChromeBlobStorageContext* blob_storage_context) | 14 ChromeBlobStorageContext* blob_storage_context, |
| 15 AudioManager* audio_manager) |
15 : getter_(getter), | 16 : getter_(getter), |
16 blob_storage_context_(blob_storage_context) { | 17 blob_storage_context_(blob_storage_context), |
| 18 audio_manager_(audio_manager) { |
17 } | 19 } |
18 | 20 |
19 ShellResourceContext::~ShellResourceContext() { | 21 ShellResourceContext::~ShellResourceContext() { |
20 } | 22 } |
21 | 23 |
22 void ShellResourceContext::EnsureInitialized() const { | 24 void ShellResourceContext::EnsureInitialized() const { |
23 const_cast<ShellResourceContext*>(this)->InitializeInternal(); | 25 const_cast<ShellResourceContext*>(this)->InitializeInternal(); |
24 } | 26 } |
25 | 27 |
26 void ShellResourceContext::InitializeInternal() { | 28 void ShellResourceContext::InitializeInternal() { |
27 set_request_context(getter_->GetURLRequestContext()); | 29 set_request_context(getter_->GetURLRequestContext()); |
28 set_host_resolver(getter_->host_resolver()); | 30 set_host_resolver(getter_->host_resolver()); |
29 set_blob_storage_context(blob_storage_context_); | 31 set_blob_storage_context(blob_storage_context_); |
| 32 set_audio_manager(audio_manager_); |
30 } | 33 } |
31 | 34 |
32 } // namespace content | 35 } // namespace content |
OLD | NEW |