Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Side by Side Diff: content/shell/shell_resource_context.h

Issue 9316077: Enable audio/video tag in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698