| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 // |browser_context| is needed in the additional FileSystemBackends. | 604 // |browser_context| is needed in the additional FileSystemBackends. |
| 605 // It has mount points to create objects returned by additional | 605 // It has mount points to create objects returned by additional |
| 606 // FileSystemBackends, and SpecialStoragePolicy for permission granting. | 606 // FileSystemBackends, and SpecialStoragePolicy for permission granting. |
| 607 virtual void GetAdditionalFileSystemBackends( | 607 virtual void GetAdditionalFileSystemBackends( |
| 608 BrowserContext* browser_context, | 608 BrowserContext* browser_context, |
| 609 const base::FilePath& storage_partition_path, | 609 const base::FilePath& storage_partition_path, |
| 610 ScopedVector<storage::FileSystemBackend>* additional_backends) {} | 610 ScopedVector<storage::FileSystemBackend>* additional_backends) {} |
| 611 | 611 |
| 612 // Allows an embedder to return its own LocationProvider implementation. | 612 // Allows an embedder to return its own LocationProvider implementation. |
| 613 // Return nullptr to use the default one for the platform to be created. | 613 // Return nullptr to use the default one for the platform to be created. |
| 614 // Caller takes ownership of the returned LocationProvider. |
| 614 // FYI: Used by an external project; please don't remove. | 615 // FYI: Used by an external project; please don't remove. |
| 615 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more | 616 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more |
| 616 // information. | 617 // information. |
| 617 virtual LocationProvider* OverrideSystemLocationProvider(); | 618 virtual LocationProvider* OverrideSystemLocationProvider(); |
| 618 | 619 |
| 620 // Returns true if the location API should use network-based |
| 621 // location approximation in addition to the system provider, if any. |
| 622 virtual bool UseNetworkLocationProviders(); |
| 623 |
| 619 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. | 624 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. |
| 620 // It's valid to return nullptr. | 625 // It's valid to return nullptr. |
| 621 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); | 626 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); |
| 622 | 627 |
| 623 // Creates a new TracingDelegate. The caller owns the returned value. | 628 // Creates a new TracingDelegate. The caller owns the returned value. |
| 624 // It's valid to return nullptr. | 629 // It's valid to return nullptr. |
| 625 virtual TracingDelegate* GetTracingDelegate(); | 630 virtual TracingDelegate* GetTracingDelegate(); |
| 626 | 631 |
| 627 // Returns true if plugin referred to by the url can use | 632 // Returns true if plugin referred to by the url can use |
| 628 // pp::FileIO::RequestOSFileHandle. | 633 // pp::FileIO::RequestOSFileHandle. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 773 // implementation. Return nullptr to disable external surface video. | 778 // implementation. Return nullptr to disable external surface video. |
| 774 virtual ExternalVideoSurfaceContainer* | 779 virtual ExternalVideoSurfaceContainer* |
| 775 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 776 #endif | 781 #endif |
| 777 }; | 782 }; |
| 778 | 783 |
| 779 } // namespace content | 784 } // namespace content |
| 780 | 785 |
| 781 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |