| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 // It's valid to return NULL. | 613 // It's valid to return NULL. |
| 614 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); | 614 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); |
| 615 | 615 |
| 616 // Returns true if plugin referred to by the url can use | 616 // Returns true if plugin referred to by the url can use |
| 617 // pp::FileIO::RequestOSFileHandle. | 617 // pp::FileIO::RequestOSFileHandle. |
| 618 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 618 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
| 619 BrowserContext* browser_context, | 619 BrowserContext* browser_context, |
| 620 const GURL& url); | 620 const GURL& url); |
| 621 | 621 |
| 622 // Returns true if dev channel APIs are available for plugins. | 622 // Returns true if dev channel APIs are available for plugins. |
| 623 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 623 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
| 624 BrowserContext* browser_context, |
| 625 const GURL& url); |
| 624 | 626 |
| 625 // Returns a special cookie store to use for a given render process, or NULL | 627 // Returns a special cookie store to use for a given render process, or NULL |
| 626 // if the default cookie store should be used | 628 // if the default cookie store should be used |
| 627 // This is called on the IO thread. | 629 // This is called on the IO thread. |
| 628 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 630 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
| 629 int render_process_id); | 631 int render_process_id); |
| 630 | 632 |
| 631 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 633 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 632 // 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 |
| 633 // a child process. | 635 // a child process. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 653 // implementation. Return NULL to disable external surface video. | 655 // implementation. Return NULL to disable external surface video. |
| 654 virtual ExternalVideoSurfaceContainer* | 656 virtual ExternalVideoSurfaceContainer* |
| 655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 656 #endif | 658 #endif |
| 657 }; | 659 }; |
| 658 | 660 |
| 659 } // namespace content | 661 } // namespace content |
| 660 | 662 |
| 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |