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

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: 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(
308 content::BrowserContext* browser_context,
jam 2012/03/01 06:21:26 ditto
Dmitry Polukhin 2012/03/01 06:36:05 Done.
309 const GURL& url) {
308 return false; 310 return false;
309 } 311 }
310 312
311 #if defined(OS_POSIX) && !defined(OS_MACOSX) 313 #if defined(OS_POSIX) && !defined(OS_MACOSX)
312 int MockContentBrowserClient::GetCrashSignalFD( 314 int MockContentBrowserClient::GetCrashSignalFD(
313 const CommandLine& command_line) { 315 const CommandLine& command_line) {
314 return -1; 316 return -1;
315 } 317 }
316 #endif 318 #endif
317 319
318 #if defined(OS_WIN) 320 #if defined(OS_WIN)
319 const wchar_t* MockContentBrowserClient::GetResourceDllName() { 321 const wchar_t* MockContentBrowserClient::GetResourceDllName() {
320 return NULL; 322 return NULL;
321 } 323 }
322 #endif 324 #endif
323 325
324 #if defined(USE_NSS) 326 #if defined(USE_NSS)
325 crypto::CryptoModuleBlockingPasswordDelegate* 327 crypto::CryptoModuleBlockingPasswordDelegate*
326 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 328 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
327 return NULL; 329 return NULL;
328 } 330 }
329 #endif 331 #endif
330 332
331 } // namespace content 333 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698