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

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: review comments 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 // |visibility_state| should not be null. It will only be set if needed. 608 // |visibility_state| should not be null. It will only be set if needed.
608 virtual void OverridePageVisibilityState( 609 virtual void OverridePageVisibilityState(
609 RenderFrameHost* render_frame_host, 610 RenderFrameHost* render_frame_host,
610 blink::WebPageVisibilityState* visibility_state) {} 611 blink::WebPageVisibilityState* visibility_state) {}
611 612
612 // Allows an embedder to provide its own PresentationServiceDelegate 613 // Allows an embedder to provide its own PresentationServiceDelegate
613 // implementation. Returns nullptr if unavailable. 614 // implementation. Returns nullptr if unavailable.
614 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( 615 virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
615 WebContents* web_contents); 616 WebContents* web_contents);
616 617
618 // Allows programmatic opening of a new tab/window without going through
619 // another WebContents. For example, from a Worker.
620 virtual WebContents* OpenURL(BrowserContext* browser_context,
621 const OpenURLParams& params);
622
617 #if defined(OS_POSIX) && !defined(OS_MACOSX) 623 #if defined(OS_POSIX) && !defined(OS_MACOSX)
618 // Populates |mappings| with all files that need to be mapped before launching 624 // Populates |mappings| with all files that need to be mapped before launching
619 // a child process. 625 // a child process.
620 virtual void GetAdditionalMappedFilesForChildProcess( 626 virtual void GetAdditionalMappedFilesForChildProcess(
621 const base::CommandLine& command_line, 627 const base::CommandLine& command_line,
622 int child_process_id, 628 int child_process_id,
623 FileDescriptorInfo* mappings) {} 629 FileDescriptorInfo* mappings) {}
624 #endif 630 #endif
625 631
626 #if defined(OS_WIN) 632 #if defined(OS_WIN)
(...skipping 11 matching lines...) Expand all
638 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 644 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
639 // implementation. Return nullptr to disable external surface video. 645 // implementation. Return nullptr to disable external surface video.
640 virtual ExternalVideoSurfaceContainer* 646 virtual ExternalVideoSurfaceContainer*
641 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 647 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
642 #endif 648 #endif
643 }; 649 };
644 650
645 } // namespace content 651 } // namespace content
646 652
647 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 653 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698