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

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

Issue 843583005: [ServiceWorker] Implement WebServiceWorkerContextClient::openWindow(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@content_browser_client_openurl
Patch Set: rebase Created 5 years, 10 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 class RenderFrameHost; 101 class RenderFrameHost;
102 class RenderProcessHost; 102 class RenderProcessHost;
103 class RenderViewHost; 103 class RenderViewHost;
104 class ResourceContext; 104 class ResourceContext;
105 class ServiceRegistry; 105 class ServiceRegistry;
106 class SiteInstance; 106 class SiteInstance;
107 class SpeechRecognitionManagerDelegate; 107 class SpeechRecognitionManagerDelegate;
108 class WebContents; 108 class WebContents;
109 class WebContentsViewDelegate; 109 class WebContentsViewDelegate;
110 struct MainFunctionParams; 110 struct MainFunctionParams;
111 struct OpenURLParams;
111 struct Referrer; 112 struct Referrer;
112 struct WebPreferences; 113 struct WebPreferences;
113 114
114 // A mapping from the scheme name to the protocol handler that services its 115 // A mapping from the scheme name to the protocol handler that services its
115 // content. 116 // content.
116 typedef std::map< 117 typedef std::map<
117 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> > 118 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> >
118 ProtocolHandlerMap; 119 ProtocolHandlerMap;
119 120
120 // A scoped vector of protocol interceptors. 121 // A scoped vector of protocol interceptors.
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 // |visibility_state| should not be null. It will only be set if needed. 603 // |visibility_state| should not be null. It will only be set if needed.
603 virtual void OverridePageVisibilityState( 604 virtual void OverridePageVisibilityState(
604 RenderFrameHost* render_frame_host, 605 RenderFrameHost* render_frame_host,
605 blink::WebPageVisibilityState* visibility_state) {} 606 blink::WebPageVisibilityState* visibility_state) {}
606 607
607 // Allows an embedder to provide its own PresentationServiceDelegate 608 // Allows an embedder to provide its own PresentationServiceDelegate
608 // implementation. Returns nullptr if unavailable. 609 // implementation. Returns nullptr if unavailable.
609 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( 610 virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
610 WebContents* web_contents); 611 WebContents* web_contents);
611 612
613 // Allows programmatic opening of a new tab/window without going through
614 // another WebContents. For example, from a Worker.
615 virtual WebContents* OpenURL(BrowserContext* browser_context,
616 const OpenURLParams& params);
617
612 #if defined(OS_POSIX) && !defined(OS_MACOSX) 618 #if defined(OS_POSIX) && !defined(OS_MACOSX)
613 // Populates |mappings| with all files that need to be mapped before launching 619 // Populates |mappings| with all files that need to be mapped before launching
614 // a child process. 620 // a child process.
615 virtual void GetAdditionalMappedFilesForChildProcess( 621 virtual void GetAdditionalMappedFilesForChildProcess(
616 const base::CommandLine& command_line, 622 const base::CommandLine& command_line,
617 int child_process_id, 623 int child_process_id,
618 FileDescriptorInfo* mappings) {} 624 FileDescriptorInfo* mappings) {}
619 #endif 625 #endif
620 626
621 #if defined(OS_WIN) 627 #if defined(OS_WIN)
(...skipping 11 matching lines...) Expand all
633 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 639 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
634 // implementation. Return nullptr to disable external surface video. 640 // implementation. Return nullptr to disable external surface video.
635 virtual ExternalVideoSurfaceContainer* 641 virtual ExternalVideoSurfaceContainer*
636 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 642 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
637 #endif 643 #endif
638 }; 644 };
639 645
640 } // namespace content 646 } // namespace content
641 647
642 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 648 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698