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

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

Issue 9539011: Make socket permission also allow Pepper sockets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 8 years, 9 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool result = download_dir_.CreateUniqueTempDir(); 297 bool result = download_dir_.CreateUniqueTempDir();
298 CHECK(result); 298 CHECK(result);
299 } 299 }
300 return download_dir_.path(); 300 return download_dir_.path();
301 } 301 }
302 302
303 std::string MockContentBrowserClient::GetDefaultDownloadName() { 303 std::string MockContentBrowserClient::GetDefaultDownloadName() {
304 return std::string(); 304 return std::string();
305 } 305 }
306 306
307 bool MockContentBrowserClient::AllowSocketAPI(const GURL& url) { 307 bool MockContentBrowserClient::AllowSocketAPI(BrowserContext* browser_context,
308 const GURL& url) {
308 return false; 309 return false;
309 } 310 }
310 311
311 #if defined(OS_POSIX) && !defined(OS_MACOSX) 312 #if defined(OS_POSIX) && !defined(OS_MACOSX)
312 int MockContentBrowserClient::GetCrashSignalFD( 313 int MockContentBrowserClient::GetCrashSignalFD(
313 const CommandLine& command_line) { 314 const CommandLine& command_line) {
314 return -1; 315 return -1;
315 } 316 }
316 #endif 317 #endif
317 318
318 #if defined(OS_WIN) 319 #if defined(OS_WIN)
319 const wchar_t* MockContentBrowserClient::GetResourceDllName() { 320 const wchar_t* MockContentBrowserClient::GetResourceDllName() {
320 return NULL; 321 return NULL;
321 } 322 }
322 #endif 323 #endif
323 324
324 #if defined(USE_NSS) 325 #if defined(USE_NSS)
325 crypto::CryptoModuleBlockingPasswordDelegate* 326 crypto::CryptoModuleBlockingPasswordDelegate*
326 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 327 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
327 return NULL; 328 return NULL;
328 } 329 }
329 #endif 330 #endif
330 331
331 } // namespace content 332 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/mock_content_browser_client.h ('k') | content/browser/renderer_host/pepper_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698