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

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

Issue 844313002: Add ContentBrowserClient::OpenURL to allow tab opening wo/ WebContents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 5 years, 11 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
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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 class RenderFrameHost; 97 class RenderFrameHost;
98 class RenderProcessHost; 98 class RenderProcessHost;
99 class RenderViewHost; 99 class RenderViewHost;
100 class ResourceContext; 100 class ResourceContext;
101 class ServiceRegistry; 101 class ServiceRegistry;
102 class SiteInstance; 102 class SiteInstance;
103 class SpeechRecognitionManagerDelegate; 103 class SpeechRecognitionManagerDelegate;
104 class WebContents; 104 class WebContents;
105 class WebContentsViewDelegate; 105 class WebContentsViewDelegate;
106 struct MainFunctionParams; 106 struct MainFunctionParams;
107 struct OpenURLParams;
107 struct Referrer; 108 struct Referrer;
108 struct WebPreferences; 109 struct WebPreferences;
109 110
110 // A mapping from the scheme name to the protocol handler that services its 111 // A mapping from the scheme name to the protocol handler that services its
111 // content. 112 // content.
112 typedef std::map< 113 typedef std::map<
113 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> > 114 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> >
114 ProtocolHandlerMap; 115 ProtocolHandlerMap;
115 116
116 // A scoped vector of protocol interceptors. 117 // A scoped vector of protocol interceptors.
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 // camera. Note that this does not query the user. |type| must be 582 // camera. Note that this does not query the user. |type| must be
582 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. 583 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE.
583 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, 584 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context,
584 const GURL& security_origin, 585 const GURL& security_origin,
585 MediaStreamType type); 586 MediaStreamType type);
586 587
587 // Allows to override browser Mojo services exposed through the 588 // Allows to override browser Mojo services exposed through the
588 // RenderProcessHost. 589 // RenderProcessHost.
589 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} 590 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {}
590 591
592 // Allows programmatic opening of a new tab/window without going through
593 // another WebContents. For example, from a Worker.
594 virtual WebContents* OpenURL(BrowserContext* browser_context,
595 const OpenURLParams& params);
596
591 #if defined(OS_POSIX) && !defined(OS_MACOSX) 597 #if defined(OS_POSIX) && !defined(OS_MACOSX)
592 // Populates |mappings| with all files that need to be mapped before launching 598 // Populates |mappings| with all files that need to be mapped before launching
593 // a child process. 599 // a child process.
594 virtual void GetAdditionalMappedFilesForChildProcess( 600 virtual void GetAdditionalMappedFilesForChildProcess(
595 const base::CommandLine& command_line, 601 const base::CommandLine& command_line,
596 int child_process_id, 602 int child_process_id,
597 FileDescriptorInfo* mappings) {} 603 FileDescriptorInfo* mappings) {}
598 #endif 604 #endif
599 605
600 #if defined(OS_WIN) 606 #if defined(OS_WIN)
(...skipping 11 matching lines...) Expand all
612 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 618 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
613 // implementation. Return nullptr to disable external surface video. 619 // implementation. Return nullptr to disable external surface video.
614 virtual ExternalVideoSurfaceContainer* 620 virtual ExternalVideoSurfaceContainer*
615 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 621 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
616 #endif 622 #endif
617 }; 623 };
618 624
619 } // namespace content 625 } // namespace content
620 626
621 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 627 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client_unittest.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698