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

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

Issue 897673002: First step in enabling creating tabs without an Activity on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a-base-mounir
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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 virtual void OverridePageVisibilityState( 609 virtual void OverridePageVisibilityState(
610 RenderFrameHost* render_frame_host, 610 RenderFrameHost* render_frame_host,
611 blink::WebPageVisibilityState* visibility_state) {} 611 blink::WebPageVisibilityState* visibility_state) {}
612 612
613 // Allows an embedder to provide its own PresentationServiceDelegate 613 // Allows an embedder to provide its own PresentationServiceDelegate
614 // implementation. Returns nullptr if unavailable. 614 // implementation. Returns nullptr if unavailable.
615 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( 615 virtual PresentationServiceDelegate* GetPresentationServiceDelegate(
616 WebContents* web_contents); 616 WebContents* web_contents);
617 617
618 // Allows programmatic opening of a new tab/window without going through 618 // Allows programmatic opening of a new tab/window without going through
619 // another WebContents. For example, from a Worker. 619 // another WebContents. For example, from a Worker. |callback| will be
620 virtual WebContents* OpenURL(BrowserContext* browser_context, 620 // invoked with the appropriate WebContents* when available.
621 const OpenURLParams& params); 621 virtual void OpenURL(BrowserContext* browser_context,
622 const OpenURLParams& params,
623 const base::Callback<void(WebContents*)>& callback);
622 624
623 #if defined(OS_POSIX) && !defined(OS_MACOSX) 625 #if defined(OS_POSIX) && !defined(OS_MACOSX)
624 // Populates |mappings| with all files that need to be mapped before launching 626 // Populates |mappings| with all files that need to be mapped before launching
625 // a child process. 627 // a child process.
626 virtual void GetAdditionalMappedFilesForChildProcess( 628 virtual void GetAdditionalMappedFilesForChildProcess(
627 const base::CommandLine& command_line, 629 const base::CommandLine& command_line,
628 int child_process_id, 630 int child_process_id,
629 FileDescriptorInfo* mappings) {} 631 FileDescriptorInfo* mappings) {}
630 #endif 632 #endif
631 633
(...skipping 12 matching lines...) Expand all
644 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 646 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
645 // implementation. Return nullptr to disable external surface video. 647 // implementation. Return nullptr to disable external surface video.
646 virtual ExternalVideoSurfaceContainer* 648 virtual ExternalVideoSurfaceContainer*
647 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 649 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
648 #endif 650 #endif
649 }; 651 };
650 652
651 } // namespace content 653 } // namespace content
652 654
653 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 655 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698