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

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

Issue 18254010: IPC fuzzer child process component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no windows support Created 7 years, 3 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 #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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 // FileSystemBackends, and SpecialStoragePolicy for permission granting. 556 // FileSystemBackends, and SpecialStoragePolicy for permission granting.
557 virtual void GetAdditionalFileSystemBackends( 557 virtual void GetAdditionalFileSystemBackends(
558 BrowserContext* browser_context, 558 BrowserContext* browser_context,
559 const base::FilePath& storage_partition_path, 559 const base::FilePath& storage_partition_path,
560 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} 560 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {}
561 561
562 // Allows an embedder to return its own LocationProvider implementation. 562 // Allows an embedder to return its own LocationProvider implementation.
563 // Return NULL to use the default one for the platform to be created. 563 // Return NULL to use the default one for the platform to be created.
564 virtual LocationProvider* OverrideSystemLocationProvider(); 564 virtual LocationProvider* OverrideSystemLocationProvider();
565 565
566 // Allows an embedder to decide whether a child process should be killed
567 // if it sends a bad IPC message.
568 // Apart from testing, it is an incredibly bad idea from a security
569 // perspective to allow a child process to survive after sending a bad
570 // message.
571 virtual bool ShouldKillChildProcessOnBadMessage();
572
566 #if defined(OS_POSIX) && !defined(OS_MACOSX) 573 #if defined(OS_POSIX) && !defined(OS_MACOSX)
567 // Populates |mappings| with all files that need to be mapped before launching 574 // Populates |mappings| with all files that need to be mapped before launching
568 // a child process. 575 // a child process.
569 virtual void GetAdditionalMappedFilesForChildProcess( 576 virtual void GetAdditionalMappedFilesForChildProcess(
570 const CommandLine& command_line, 577 const CommandLine& command_line,
571 int child_process_id, 578 int child_process_id,
572 std::vector<FileDescriptorInfo>* mappings) {} 579 std::vector<FileDescriptorInfo>* mappings) {}
573 #endif 580 #endif
574 581
575 #if defined(OS_WIN) 582 #if defined(OS_WIN)
(...skipping 12 matching lines...) Expand all
588 // This is called on a worker thread. 595 // This is called on a worker thread.
589 virtual 596 virtual
590 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 597 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
591 const GURL& url); 598 const GURL& url);
592 #endif 599 #endif
593 }; 600 };
594 601
595 } // namespace content 602 } // namespace content
596 603
597 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 604 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698