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

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

Issue 1185333003: Implement GetSandboxType() on all platforms and implement for all process types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep rebasing keep rebasing... Created 5 years, 6 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
« no previous file with comments | « content/content_common.gypi ('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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 627
628 #if defined(OS_WIN) 628 #if defined(OS_WIN)
629 // Returns the name of the dll that contains cursors and other resources. 629 // Returns the name of the dll that contains cursors and other resources.
630 virtual const wchar_t* GetResourceDllName(); 630 virtual const wchar_t* GetResourceDllName();
631 631
632 // This is called on the PROCESS_LAUNCHER thread before the renderer process 632 // This is called on the PROCESS_LAUNCHER thread before the renderer process
633 // is launched. It gives the embedder a chance to add loosen the sandbox 633 // is launched. It gives the embedder a chance to add loosen the sandbox
634 // policy. 634 // policy.
635 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, 635 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy,
636 bool* success) {} 636 bool* success) {}
637
638 // Returns the AppContainer SID for the specified sandboxed process type, or
639 // empty string if this sandboxed process type does not support living inside
640 // an AppContainer.
641 virtual base::string16 GetAppContainerSidForSandboxType(
642 int sandbox_type) const;
637 #endif 643 #endif
638 644
639 #if defined(VIDEO_HOLE) 645 #if defined(VIDEO_HOLE)
640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
641 // implementation. Return nullptr to disable external surface video. 647 // implementation. Return nullptr to disable external surface video.
642 virtual ExternalVideoSurfaceContainer* 648 virtual ExternalVideoSurfaceContainer*
643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
644 #endif 650 #endif
645 }; 651 };
646 652
647 } // namespace content 653 } // namespace content
648 654
649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/content_common.gypi ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698