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

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: jochen review comments 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 class RenderFrameHost; 98 class RenderFrameHost;
99 class RenderProcessHost; 99 class RenderProcessHost;
100 class RenderViewHost; 100 class RenderViewHost;
101 class ResourceContext; 101 class ResourceContext;
102 class ServiceRegistry; 102 class ServiceRegistry;
103 class SiteInstance; 103 class SiteInstance;
104 class SpeechRecognitionManagerDelegate; 104 class SpeechRecognitionManagerDelegate;
105 class WebContents; 105 class WebContents;
106 class WebContentsViewDelegate; 106 class WebContentsViewDelegate;
107 struct MainFunctionParams; 107 struct MainFunctionParams;
108 struct OpenURLParams;
108 struct Referrer; 109 struct Referrer;
109 struct WebPreferences; 110 struct WebPreferences;
110 111
111 // A mapping from the scheme name to the protocol handler that services its 112 // A mapping from the scheme name to the protocol handler that services its
112 // content. 113 // content.
113 typedef std::map< 114 typedef std::map<
114 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> > 115 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> >
115 ProtocolHandlerMap; 116 ProtocolHandlerMap;
116 117
117 // A scoped vector of protocol interceptors. 118 // A scoped vector of protocol interceptors.
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 // Allows to override browser Mojo services exposed through the 589 // Allows to override browser Mojo services exposed through the
589 // RenderProcessHost. 590 // RenderProcessHost.
590 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} 591 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {}
591 592
592 // Allows to override the visibility state of a RenderFrameHost. 593 // Allows to override the visibility state of a RenderFrameHost.
593 // |visibility_state| should not be null. It will only be set if needed. 594 // |visibility_state| should not be null. It will only be set if needed.
594 virtual void OverridePageVisibilityState( 595 virtual void OverridePageVisibilityState(
595 RenderFrameHost* render_frame_host, 596 RenderFrameHost* render_frame_host,
596 blink::WebPageVisibilityState* visibility_state) {} 597 blink::WebPageVisibilityState* visibility_state) {}
597 598
599 // Allows programmatic opening of a new tab/window without going through
600 // another WebContents. For example, from a Worker.
601 virtual WebContents* OpenURL(BrowserContext* browser_context,
602 const OpenURLParams& params);
603
598 #if defined(OS_POSIX) && !defined(OS_MACOSX) 604 #if defined(OS_POSIX) && !defined(OS_MACOSX)
599 // Populates |mappings| with all files that need to be mapped before launching 605 // Populates |mappings| with all files that need to be mapped before launching
600 // a child process. 606 // a child process.
601 virtual void GetAdditionalMappedFilesForChildProcess( 607 virtual void GetAdditionalMappedFilesForChildProcess(
602 const base::CommandLine& command_line, 608 const base::CommandLine& command_line,
603 int child_process_id, 609 int child_process_id,
604 FileDescriptorInfo* mappings) {} 610 FileDescriptorInfo* mappings) {}
605 #endif 611 #endif
606 612
607 #if defined(OS_WIN) 613 #if defined(OS_WIN)
(...skipping 11 matching lines...) Expand all
619 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 625 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
620 // implementation. Return nullptr to disable external surface video. 626 // implementation. Return nullptr to disable external surface video.
621 virtual ExternalVideoSurfaceContainer* 627 virtual ExternalVideoSurfaceContainer*
622 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 628 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
623 #endif 629 #endif
624 }; 630 };
625 631
626 } // namespace content 632 } // namespace content
627 633
628 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 634 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698