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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 11234032: Webview tag creation should be using storage partitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for all comments so far. Created 8 years, 1 month 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/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "ui/gfx/image/image_skia.h" 9 #include "ui/gfx/image/image_skia.h"
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() { 154 QuotaPermissionContext* ContentBrowserClient::CreateQuotaPermissionContext() {
155 return NULL; 155 return NULL;
156 } 156 }
157 157
158 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL( 158 net::URLRequestContext* ContentBrowserClient::OverrideRequestContextForURL(
159 const GURL& url, ResourceContext* context) { 159 const GURL& url, ResourceContext* context) {
160 return NULL; 160 return NULL;
161 } 161 }
162 162
163 std::string ContentBrowserClient::GetStoragePartitionIdForChildProcess(
164 BrowserContext* browser_context,
165 int child_process_id) {
166 return std::string();
167 }
168
169 std::string ContentBrowserClient::GetStoragePartitionIdForSite( 163 std::string ContentBrowserClient::GetStoragePartitionIdForSite(
170 BrowserContext* browser_context, 164 BrowserContext* browser_context,
171 const GURL& site) { 165 const GURL& site) {
172 return std::string(); 166 return std::string();
173 } 167 }
174 168
175 bool ContentBrowserClient::IsValidStoragePartitionId( 169 bool ContentBrowserClient::IsValidStoragePartitionId(
176 BrowserContext* browser_context, 170 BrowserContext* browser_context,
177 const std::string& partition_id) { 171 const std::string& partition_id) {
178 // Since the GetStoragePartitionIdForChildProcess() only generates empty 172 // Since the GetStoragePartitionIdForChildProcess() only generates empty
179 // strings, we should only ever see empty strings coming back. 173 // strings, we should only ever see empty strings coming back.
180 return partition_id.empty(); 174 return partition_id.empty();
181 } 175 }
182 176
177 void ContentBrowserClient::GetStoragePartitionConfigForSite(
178 BrowserContext* browser_context,
179 const GURL& site,
180 std::string* partition_domain,
181 std::string* partition_name,
182 bool* in_memory) {
183 *partition_domain = std::string();
awong 2012/11/07 18:14:30 ->clear()
nasko 2012/11/07 18:48:05 Done.
184 *partition_name = std::string();
185 *in_memory = false;
186 }
187
183 MediaObserver* ContentBrowserClient::GetMediaObserver() { 188 MediaObserver* ContentBrowserClient::GetMediaObserver() {
184 return NULL; 189 return NULL;
185 } 190 }
186 191
187 WebKit::WebNotificationPresenter::Permission 192 WebKit::WebNotificationPresenter::Permission
188 ContentBrowserClient::CheckDesktopNotificationPermission( 193 ContentBrowserClient::CheckDesktopNotificationPermission(
189 const GURL& source_origin, 194 const GURL& source_origin,
190 ResourceContext* context, 195 ResourceContext* context,
191 int render_process_id) { 196 int render_process_id) {
192 return WebKit::WebNotificationPresenter::PermissionAllowed; 197 return WebKit::WebNotificationPresenter::PermissionAllowed;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 #endif 259 #endif
255 260
256 #if defined(USE_NSS) 261 #if defined(USE_NSS)
257 crypto::CryptoModuleBlockingPasswordDelegate* 262 crypto::CryptoModuleBlockingPasswordDelegate*
258 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 263 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
259 return NULL; 264 return NULL;
260 } 265 }
261 #endif 266 #endif
262 267
263 } // namespace content 268 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698