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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 11437038: Revert 171408 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // Gets the host for an external out-of-process plugin. 452 // Gets the host for an external out-of-process plugin.
453 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost( 453 virtual content::BrowserPpapiHost* GetExternalBrowserPpapiHost(
454 int plugin_child_id); 454 int plugin_child_id);
455 455
456 // Returns true if renderer processes can use Pepper TCP/UDP sockets from 456 // Returns true if renderer processes can use Pepper TCP/UDP sockets from
457 // the given origin and connection type. 457 // the given origin and connection type.
458 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, 458 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,
459 const GURL& url, 459 const GURL& url,
460 const SocketPermissionRequest& params); 460 const SocketPermissionRequest& params);
461 461
462 // Returns true if renderer processes can use private Pepper File APIs.
463 virtual bool AllowPepperPrivateFileAPI();
464
462 // Returns the directory containing hyphenation dictionaries. 465 // Returns the directory containing hyphenation dictionaries.
463 virtual FilePath GetHyphenDictionaryDirectory(); 466 virtual FilePath GetHyphenDictionaryDirectory();
464 467
465 #if defined(OS_POSIX) && !defined(OS_MACOSX) 468 #if defined(OS_POSIX) && !defined(OS_MACOSX)
466 // Populates |mappings| with all files that need to be mapped before launching 469 // Populates |mappings| with all files that need to be mapped before launching
467 // a child process. 470 // a child process.
468 virtual void GetAdditionalMappedFilesForChildProcess( 471 virtual void GetAdditionalMappedFilesForChildProcess(
469 const CommandLine& command_line, 472 const CommandLine& command_line,
470 int child_process_id, 473 int child_process_id,
471 std::vector<FileDescriptorInfo>* mappings) {} 474 std::vector<FileDescriptorInfo>* mappings) {}
472 #endif 475 #endif
473 476
474 #if defined(OS_WIN) 477 #if defined(OS_WIN)
475 // Returns the name of the dll that contains cursors and other resources. 478 // Returns the name of the dll that contains cursors and other resources.
476 virtual const wchar_t* GetResourceDllName(); 479 virtual const wchar_t* GetResourceDllName();
477 #endif 480 #endif
478 481
479 #if defined(USE_NSS) 482 #if defined(USE_NSS)
480 // Return a delegate to authenticate and unlock |module|. 483 // Return a delegate to authenticate and unlock |module|.
481 // This is called on a worker thread. 484 // This is called on a worker thread.
482 virtual 485 virtual
483 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 486 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
484 const GURL& url); 487 const GURL& url);
485 #endif 488 #endif
486 }; 489 };
487 490
488 } // namespace content 491 } // namespace content
489 492
490 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 493 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_ppapi_host.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698