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

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

Issue 10836305: Ensure that isolated apps use the right cookies for media requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initial version Created 8 years, 4 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) 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_browser_context.h" 5 #include "content/shell/shell_browser_context.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 return url_request_getter_; 94 return url_request_getter_;
95 } 95 }
96 96
97 net::URLRequestContextGetter* 97 net::URLRequestContextGetter*
98 ShellBrowserContext::GetRequestContextForRenderProcess( 98 ShellBrowserContext::GetRequestContextForRenderProcess(
99 int renderer_child_id) { 99 int renderer_child_id) {
100 return GetRequestContext(); 100 return GetRequestContext();
101 } 101 }
102 102
103 net::URLRequestContextGetter* 103 net::URLRequestContextGetter*
104 ShellBrowserContext::GetRequestContextForMedia() { 104 ShellBrowserContext::GetRequestContextForMedia(
105 int renderer_child_id) {
105 return GetRequestContext(); 106 return GetRequestContext();
106 } 107 }
107 108
108 ResourceContext* ShellBrowserContext::GetResourceContext() { 109 ResourceContext* ShellBrowserContext::GetResourceContext() {
109 if (!resource_context_.get()) { 110 if (!resource_context_.get()) {
110 resource_context_.reset(new ShellResourceContext( 111 resource_context_.reset(new ShellResourceContext(
111 static_cast<ShellURLRequestContextGetter*>(GetRequestContext()))); 112 static_cast<ShellURLRequestContextGetter*>(GetRequestContext())));
112 } 113 }
113 return resource_context_.get(); 114 return resource_context_.get();
114 } 115 }
(...skipping 10 matching lines...) Expand all
125 126
126 bool ShellBrowserContext::DidLastSessionExitCleanly() { 127 bool ShellBrowserContext::DidLastSessionExitCleanly() {
127 return true; 128 return true;
128 } 129 }
129 130
130 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() { 131 quota::SpecialStoragePolicy* ShellBrowserContext::GetSpecialStoragePolicy() {
131 return NULL; 132 return NULL;
132 } 133 }
133 134
134 } // namespace content 135 } // namespace content
OLDNEW
« chrome/browser/profiles/profile_impl_io_data.cc ('K') | « content/shell/shell_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698