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 | 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 ShellResourceContext( | 21 ShellResourceContext( |
22 ShellURLRequestContextGetter* getter, | 22 ShellURLRequestContextGetter* getter, |
23 ChromeBlobStorageContext* blob_storage_context); | 23 ChromeBlobStorageContext* blob_storage_context); |
24 virtual ~ShellResourceContext(); | 24 virtual ~ShellResourceContext(); |
25 | 25 |
26 private: | 26 private: |
27 virtual void EnsureInitialized() const OVERRIDE; | 27 // ResourceContext implementation: |
28 | 28 virtual net::HostResolver* GetHostResolver() OVERRIDE; |
29 void InitializeInternal(); | 29 virtual net::URLRequestContext* GetRequestContext() OVERRIDE; |
| 30 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
| 31 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| 32 virtual fileapi::FileSystemContext* GetFileSystemContext() OVERRIDE; |
| 33 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; |
| 34 virtual quota::QuotaManager* GetQuotaManager() OVERRIDE; |
| 35 virtual HostZoomMap* GetHostZoomMap() OVERRIDE; |
| 36 virtual MediaObserver* GetMediaObserver() OVERRIDE; |
| 37 virtual media_stream::MediaStreamManager* GetMediaStreamManager() OVERRIDE; |
| 38 virtual AudioManager* GetAudioManager() OVERRIDE; |
30 | 39 |
31 scoped_refptr<ShellURLRequestContextGetter> getter_; | 40 scoped_refptr<ShellURLRequestContextGetter> getter_; |
32 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 41 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
33 | 42 |
34 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); | 43 DISALLOW_COPY_AND_ASSIGN(ShellResourceContext); |
35 }; | 44 }; |
36 | 45 |
37 } // namespace content | 46 } // namespace content |
38 | 47 |
39 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ | 48 #endif // CONTENT_SHELL_SHELL_RESOURCE_CONTEXT_H_ |
OLD | NEW |