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

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

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac/cros browsertests 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
« no previous file with comments | « content/shell/shell_resource_context.h ('k') | content/test/test_browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "content/shell/shell_resource_context.h" 5 #include "content/shell/shell_resource_context.h"
6 #include "content/shell/shell_url_request_context_getter.h" 6 #include "content/shell/shell_url_request_context_getter.h"
7 7
8 namespace content { 8 namespace content {
9 9
10 ShellResourceContext::ShellResourceContext( 10 ShellResourceContext::ShellResourceContext(
11 ShellURLRequestContextGetter* getter) 11 ShellURLRequestContextGetter* getter)
12 : getter_(getter) { 12 : getter_(getter) {
13 } 13 }
14 14
15 ShellResourceContext::~ShellResourceContext() { 15 ShellResourceContext::~ShellResourceContext() {
16 } 16 }
17 17
18 net::HostResolver* ShellResourceContext::GetHostResolver() { 18 net::HostResolver* ShellResourceContext::GetHostResolver() {
19 return getter_->host_resolver(); 19 return getter_->host_resolver();
20 } 20 }
21 21
22 net::URLRequestContext* ShellResourceContext::GetRequestContext() { 22 net::URLRequestContext* ShellResourceContext::GetRequestContext() {
23 return getter_->GetURLRequestContext(); 23 return getter_->GetURLRequestContext();
24 } 24 }
25 25
26 HostZoomMap* ShellResourceContext::GetHostZoomMap() {
27 return NULL;
28 }
29
30 MediaObserver* ShellResourceContext::GetMediaObserver() { 26 MediaObserver* ShellResourceContext::GetMediaObserver() {
31 return NULL; 27 return NULL;
32 } 28 }
33 29
34 media_stream::MediaStreamManager* 30 media_stream::MediaStreamManager*
35 ShellResourceContext::GetMediaStreamManager() { 31 ShellResourceContext::GetMediaStreamManager() {
36 return NULL; 32 return NULL;
37 } 33 }
38 34
39 AudioManager* ShellResourceContext::GetAudioManager() { 35 AudioManager* ShellResourceContext::GetAudioManager() {
40 return NULL; 36 return NULL;
41 } 37 }
42 38
43 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_resource_context.h ('k') | content/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698