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

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

Issue 1415483008: Get rid of SandboxedProcessLauncherDelegate::PreSandbox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove curly braces Created 5 years, 1 month 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
« no previous file with comments | « content/common/sandbox_win.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 content::FileDescriptorInfo* mappings) {} 724 content::FileDescriptorInfo* mappings) {}
725 #endif // defined(OS_ANDROID) 725 #endif // defined(OS_ANDROID)
726 726
727 #if defined(OS_WIN) 727 #if defined(OS_WIN)
728 // Returns the name of the dll that contains cursors and other resources. 728 // Returns the name of the dll that contains cursors and other resources.
729 virtual const wchar_t* GetResourceDllName(); 729 virtual const wchar_t* GetResourceDllName();
730 730
731 // This is called on the PROCESS_LAUNCHER thread before the renderer process 731 // This is called on the PROCESS_LAUNCHER thread before the renderer process
732 // is launched. It gives the embedder a chance to add loosen the sandbox 732 // is launched. It gives the embedder a chance to add loosen the sandbox
733 // policy. 733 // policy.
734 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 734 virtual bool PreSpawnRenderer(sandbox::TargetPolicy* policy);
735 bool* success) {}
736 735
737 // Returns the AppContainer SID for the specified sandboxed process type, or 736 // Returns the AppContainer SID for the specified sandboxed process type, or
738 // empty string if this sandboxed process type does not support living inside 737 // empty string if this sandboxed process type does not support living inside
739 // an AppContainer. 738 // an AppContainer.
740 virtual base::string16 GetAppContainerSidForSandboxType( 739 virtual base::string16 GetAppContainerSidForSandboxType(
741 int sandbox_type) const; 740 int sandbox_type) const;
742 #endif 741 #endif
743 742
744 #if defined(VIDEO_HOLE) 743 #if defined(VIDEO_HOLE)
745 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 744 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
746 // implementation. Return nullptr to disable external surface video. 745 // implementation. Return nullptr to disable external surface video.
747 virtual ExternalVideoSurfaceContainer* 746 virtual ExternalVideoSurfaceContainer*
748 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 747 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
749 #endif 748 #endif
750 }; 749 };
751 750
752 } // namespace content 751 } // namespace content
753 752
754 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 753 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/sandbox_win.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698