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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 655 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
653 // implementation. Return nullptr to disable external surface video. | 656 // implementation. Return nullptr to disable external surface video. |
654 virtual ExternalVideoSurfaceContainer* | 657 virtual ExternalVideoSurfaceContainer* |
655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 658 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
656 #endif | 659 #endif |
657 }; | 660 }; |
658 | 661 |
659 } // namespace content | 662 } // namespace content |
660 | 663 |
661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 664 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |