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

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

Issue 9379002: Move socket API restriction check to browser process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 bool result = download_dir_.CreateUniqueTempDir(); 287 bool result = download_dir_.CreateUniqueTempDir();
288 CHECK(result); 288 CHECK(result);
289 } 289 }
290 return download_dir_.path(); 290 return download_dir_.path();
291 } 291 }
292 292
293 std::string MockContentBrowserClient::GetDefaultDownloadName() { 293 std::string MockContentBrowserClient::GetDefaultDownloadName() {
294 return std::string(); 294 return std::string();
295 } 295 }
296 296
297 bool MockContentBrowserClient::AllowSocketAPI(const GURL& url) {
298 return false;
299 }
300
297 #if defined(OS_POSIX) && !defined(OS_MACOSX) 301 #if defined(OS_POSIX) && !defined(OS_MACOSX)
298 int MockContentBrowserClient::GetCrashSignalFD( 302 int MockContentBrowserClient::GetCrashSignalFD(
299 const CommandLine& command_line) { 303 const CommandLine& command_line) {
300 return -1; 304 return -1;
301 } 305 }
302 #endif 306 #endif
303 307
304 #if defined(OS_WIN) 308 #if defined(OS_WIN)
305 const wchar_t* MockContentBrowserClient::GetResourceDllName() { 309 const wchar_t* MockContentBrowserClient::GetResourceDllName() {
306 return NULL; 310 return NULL;
307 } 311 }
308 #endif 312 #endif
309 313
310 #if defined(USE_NSS) 314 #if defined(USE_NSS)
311 crypto::CryptoModuleBlockingPasswordDelegate* 315 crypto::CryptoModuleBlockingPasswordDelegate*
312 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 316 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
313 return NULL; 317 return NULL;
314 } 318 }
315 #endif 319 #endif
316 320
317 } // namespace content 321 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/renderer_host/pepper_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698