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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
634 // It's valid to return NULL. | 634 // It's valid to return NULL. |
635 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); | 635 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); |
636 | 636 |
637 // Returns true if plugin referred to by the url can use | 637 // Returns true if plugin referred to by the url can use |
638 // pp::FileIO::RequestOSFileHandle. | 638 // pp::FileIO::RequestOSFileHandle. |
639 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 639 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
640 BrowserContext* browser_context, | 640 BrowserContext* browser_context, |
641 const GURL& url); | 641 const GURL& url); |
642 | 642 |
643 // Returns true if dev channel APIs are available for plugins. | 643 // Returns true if dev channel APIs are available for plugins. |
644 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 644 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
| 645 BrowserContext* browser_context, |
| 646 const GURL& url); |
645 | 647 |
646 // Returns a special cookie store to use for a given render process, or NULL | 648 // Returns a special cookie store to use for a given render process, or NULL |
647 // if the default cookie store should be used | 649 // if the default cookie store should be used |
648 // This is called on the IO thread. | 650 // This is called on the IO thread. |
649 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 651 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
650 int render_process_id); | 652 int render_process_id); |
651 | 653 |
652 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 654 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
653 // Populates |mappings| with all files that need to be mapped before launching | 655 // Populates |mappings| with all files that need to be mapped before launching |
654 // a child process. | 656 // a child process. |
(...skipping 18 matching lines...) Expand all Loading... |
673 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 675 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
674 // implementation. Return NULL to disable external surface video. | 676 // implementation. Return NULL to disable external surface video. |
675 virtual ExternalVideoSurfaceContainer* | 677 virtual ExternalVideoSurfaceContainer* |
676 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 678 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
677 #endif | 679 #endif |
678 }; | 680 }; |
679 | 681 |
680 } // namespace content | 682 } // namespace content |
681 | 683 |
682 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 684 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |