OLD | NEW |
---|---|
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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
619 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 619 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
620 WebContents* web_contents); | 620 WebContents* web_contents); |
621 | 621 |
622 // Allows programmatic opening of a new tab/window without going through | 622 // Allows programmatic opening of a new tab/window without going through |
623 // another WebContents. For example, from a Worker. |callback| will be | 623 // another WebContents. For example, from a Worker. |callback| will be |
624 // invoked with the appropriate WebContents* when available. | 624 // invoked with the appropriate WebContents* when available. |
625 virtual void OpenURL(BrowserContext* browser_context, | 625 virtual void OpenURL(BrowserContext* browser_context, |
626 const OpenURLParams& params, | 626 const OpenURLParams& params, |
627 const base::Callback<void(WebContents*)>& callback); | 627 const base::Callback<void(WebContents*)>& callback); |
628 | 628 |
629 // Records the domain and registry of a url to a Rappor metric. | |
630 virtual void SampleDomainAndRegistryFromGURL(const std::string& metric, | |
nasko
2015/02/26 01:03:20
This client interface should be towards a generic
horo
2015/02/26 07:07:45
Done.
| |
631 const GURL& gurl) {} | |
632 | |
629 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 633 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
630 // Populates |mappings| with all files that need to be mapped before launching | 634 // Populates |mappings| with all files that need to be mapped before launching |
631 // a child process. | 635 // a child process. |
632 virtual void GetAdditionalMappedFilesForChildProcess( | 636 virtual void GetAdditionalMappedFilesForChildProcess( |
633 const base::CommandLine& command_line, | 637 const base::CommandLine& command_line, |
634 int child_process_id, | 638 int child_process_id, |
635 FileDescriptorInfo* mappings) {} | 639 FileDescriptorInfo* mappings) {} |
636 #endif | 640 #endif |
637 | 641 |
638 #if defined(OS_WIN) | 642 #if defined(OS_WIN) |
(...skipping 11 matching lines...) Expand all Loading... | |
650 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
651 // implementation. Return nullptr to disable external surface video. | 655 // implementation. Return nullptr to disable external surface video. |
652 virtual ExternalVideoSurfaceContainer* | 656 virtual ExternalVideoSurfaceContainer* |
653 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
654 #endif | 658 #endif |
655 }; | 659 }; |
656 | 660 |
657 } // namespace content | 661 } // namespace content |
658 | 662 |
659 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |