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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 virtual LocationProvider* OverrideSystemLocationProvider(); | 555 virtual LocationProvider* OverrideSystemLocationProvider(); |
556 | 556 |
557 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. | 557 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. |
558 // It's valid to return nullptr. | 558 // It's valid to return nullptr. |
559 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); | 559 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); |
560 | 560 |
561 // Creates a new TracingDelegate. The caller owns the returned value. | 561 // Creates a new TracingDelegate. The caller owns the returned value. |
562 // It's valid to return nullptr. | 562 // It's valid to return nullptr. |
563 virtual TracingDelegate* GetTracingDelegate(); | 563 virtual TracingDelegate* GetTracingDelegate(); |
564 | 564 |
| 565 // Returns true if NPAPI plugins are enabled. |
| 566 virtual bool IsNPAPIEnabled(); |
| 567 |
565 // Returns true if plugin referred to by the url can use | 568 // Returns true if plugin referred to by the url can use |
566 // pp::FileIO::RequestOSFileHandle. | 569 // pp::FileIO::RequestOSFileHandle. |
567 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 570 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
568 BrowserContext* browser_context, | 571 BrowserContext* browser_context, |
569 const GURL& url); | 572 const GURL& url); |
570 | 573 |
571 // Returns true if dev channel APIs are available for plugins. | 574 // Returns true if dev channel APIs are available for plugins. |
572 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 575 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
573 BrowserContext* browser_context, | 576 BrowserContext* browser_context, |
574 const GURL& url); | 577 const GURL& url); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 667 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
665 // implementation. Return nullptr to disable external surface video. | 668 // implementation. Return nullptr to disable external surface video. |
666 virtual ExternalVideoSurfaceContainer* | 669 virtual ExternalVideoSurfaceContainer* |
667 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 670 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
668 #endif | 671 #endif |
669 }; | 672 }; |
670 | 673 |
671 } // namespace content | 674 } // namespace content |
672 | 675 |
673 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 676 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |