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

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

Issue 9837074: Make it so that allow_js_access: false can be used with background pages created by window.open. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix indentation. Created 8 years, 8 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/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 "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 int render_process_id, 241 int render_process_id,
242 int render_view_id, 242 int render_view_id,
243 int notification_id) { 243 int notification_id) {
244 } 244 }
245 245
246 bool MockContentBrowserClient::CanCreateWindow( 246 bool MockContentBrowserClient::CanCreateWindow(
247 const GURL& opener_url, 247 const GURL& opener_url,
248 const GURL& source_origin, 248 const GURL& source_origin,
249 WindowContainerType container_type, 249 WindowContainerType container_type,
250 ResourceContext* context, 250 ResourceContext* context,
251 int render_process_id) { 251 int render_process_id,
252 bool* no_javascript_access) {
253 *no_javascript_access = false;
252 return true; 254 return true;
253 } 255 }
254 256
255 std::string MockContentBrowserClient::GetWorkerProcessTitle( 257 std::string MockContentBrowserClient::GetWorkerProcessTitle(
256 const GURL& url, ResourceContext* context) { 258 const GURL& url, ResourceContext* context) {
257 return std::string(); 259 return std::string();
258 } 260 }
259 261
260 void MockContentBrowserClient::ResourceDispatcherHostCreated() { 262 void MockContentBrowserClient::ResourceDispatcherHostCreated() {
261 } 263 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 #endif 337 #endif
336 338
337 #if defined(USE_NSS) 339 #if defined(USE_NSS)
338 crypto::CryptoModuleBlockingPasswordDelegate* 340 crypto::CryptoModuleBlockingPasswordDelegate*
339 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 341 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
340 return NULL; 342 return NULL;
341 } 343 }
342 #endif 344 #endif
343 345
344 } // namespace content 346 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698