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

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

Issue 1470823002: Enable builtin Mojo JS modules in layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-testing
Patch Set: self review Created 5 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
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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 // to control the flow of a navigation on the UI thread. The embedder is 713 // to control the flow of a navigation on the UI thread. The embedder is
714 // guaranteed that the throttles will be executed in the order they were 714 // guaranteed that the throttles will be executed in the order they were
715 // provided. 715 // provided.
716 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( 716 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
717 NavigationHandle* navigation_handle); 717 NavigationHandle* navigation_handle);
718 718
719 // Creates and returns a factory used for creating CDM instances for playing 719 // Creates and returns a factory used for creating CDM instances for playing
720 // protected content. 720 // protected content.
721 virtual scoped_ptr<media::CdmFactory> CreateCdmFactory(); 721 virtual scoped_ptr<media::CdmFactory> CreateCdmFactory();
722 722
723 // Allows the embedder to override the default bindings available to a render
724 // view. This must return a bitwise OR of BindingsPolicy values.
725 virtual int GetDefaultEnabledBindingsForView(RenderViewHost* view);
Charlie Reis 2016/01/15 01:26:51 Hmm, no one outside content/ is using this. John,
jam 2016/01/15 02:25:15 correct. content/shell can only use content/public
jam 2016/01/15 02:25:15 Why isn't this on WebContentsDelegate? ContentBrow
Ken Rockot(use gerrit already) 2016/01/24 23:03:51 Actually that's not even necessary either. I've go
726
723 // Populates |mappings| with all files that need to be mapped before launching 727 // Populates |mappings| with all files that need to be mapped before launching
724 // a child process. 728 // a child process.
725 #if defined(OS_ANDROID) 729 #if defined(OS_ANDROID)
726 virtual void GetAdditionalMappedFilesForChildProcess( 730 virtual void GetAdditionalMappedFilesForChildProcess(
727 const base::CommandLine& command_line, 731 const base::CommandLine& command_line,
728 int child_process_id, 732 int child_process_id,
729 content::FileDescriptorInfo* mappings, 733 content::FileDescriptorInfo* mappings,
730 std::map<int, base::MemoryMappedFile::Region>* regions) {} 734 std::map<int, base::MemoryMappedFile::Region>* regions) {}
731 #elif defined(OS_POSIX) && !defined(OS_MACOSX) 735 #elif defined(OS_POSIX) && !defined(OS_MACOSX)
732 virtual void GetAdditionalMappedFilesForChildProcess( 736 virtual void GetAdditionalMappedFilesForChildProcess(
(...skipping 22 matching lines...) Expand all
755 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 759 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
756 // implementation. Return nullptr to disable external surface video. 760 // implementation. Return nullptr to disable external surface video.
757 virtual ExternalVideoSurfaceContainer* 761 virtual ExternalVideoSurfaceContainer*
758 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 762 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
759 #endif 763 #endif
760 }; 764 };
761 765
762 } // namespace content 766 } // namespace content
763 767
764 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 768 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698