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

Side by Side Diff: content/browser/mock_content_browser_client.cc

Issue 7480041: Adding session-only localStorage. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Misc test fixes, revolving around [Mock]ResourceContext. Created 9 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) 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 #include "content/browser/mock_content_browser_client.h" 5 #include "content/browser/mock_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "content/browser/webui/empty_web_ui_factory.h" 9 #include "content/browser/webui/empty_web_ui_factory.h"
10 #include "googleurl/src/gurl.h" 10 #include "googleurl/src/gurl.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 int render_view_id, 93 int render_view_id,
94 net::CookieOptions* options) { 94 net::CookieOptions* options) {
95 return true; 95 return true;
96 } 96 }
97 97
98 bool MockContentBrowserClient::AllowSaveLocalState( 98 bool MockContentBrowserClient::AllowSaveLocalState(
99 const content::ResourceContext& context) { 99 const content::ResourceContext& context) {
100 return true; 100 return true;
101 } 101 }
102 102
103 bool MockContentBrowserClient::AllowPermanentStorage(
104 const GURL& url,
105 const GURL& first_party,
106 const content::ResourceContext& context) {
107 return true;
108 }
109
103 QuotaPermissionContext* 110 QuotaPermissionContext*
104 MockContentBrowserClient::CreateQuotaPermissionContext() { 111 MockContentBrowserClient::CreateQuotaPermissionContext() {
105 return NULL; 112 return NULL;
106 } 113 }
107 114
108 net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL( 115 net::URLRequestContext* MockContentBrowserClient::OverrideRequestContextForURL(
109 const GURL& url, const content::ResourceContext& context) { 116 const GURL& url, const content::ResourceContext& context) {
110 return NULL; 117 return NULL;
111 } 118 }
112 119
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #endif 235 #endif
229 236
230 #if defined(USE_NSS) 237 #if defined(USE_NSS)
231 crypto::CryptoModuleBlockingPasswordDelegate* 238 crypto::CryptoModuleBlockingPasswordDelegate*
232 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 239 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
233 return NULL; 240 return NULL;
234 } 241 }
235 #endif 242 #endif
236 243
237 } // namespace content 244 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698