| 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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 // This is called on the IO thread. | 611 // This is called on the IO thread. |
| 612 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 612 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
| 613 int render_process_id); | 613 int render_process_id); |
| 614 | 614 |
| 615 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 615 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 616 // Populates |mappings| with all files that need to be mapped before launching | 616 // Populates |mappings| with all files that need to be mapped before launching |
| 617 // a child process. | 617 // a child process. |
| 618 virtual void GetAdditionalMappedFilesForChildProcess( | 618 virtual void GetAdditionalMappedFilesForChildProcess( |
| 619 const base::CommandLine& command_line, | 619 const base::CommandLine& command_line, |
| 620 int child_process_id, | 620 int child_process_id, |
| 621 std::vector<FileDescriptorInfo>* mappings) {} | 621 FileDescriptorInfo* mappings) {} |
| 622 #endif | 622 #endif |
| 623 | 623 |
| 624 #if defined(OS_WIN) | 624 #if defined(OS_WIN) |
| 625 // Returns the name of the dll that contains cursors and other resources. | 625 // Returns the name of the dll that contains cursors and other resources. |
| 626 virtual const wchar_t* GetResourceDllName(); | 626 virtual const wchar_t* GetResourceDllName(); |
| 627 | 627 |
| 628 // This is called on the PROCESS_LAUNCHER thread before the renderer process | 628 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
| 629 // is launched. It gives the embedder a chance to add loosen the sandbox | 629 // is launched. It gives the embedder a chance to add loosen the sandbox |
| 630 // policy. | 630 // policy. |
| 631 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, | 631 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 643 // camera. Note that this does not query the user. |type| must be | 643 // camera. Note that this does not query the user. |type| must be |
| 644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 644 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
| 645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 645 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
| 646 const GURL& security_origin, | 646 const GURL& security_origin, |
| 647 MediaStreamType type); | 647 MediaStreamType type); |
| 648 }; | 648 }; |
| 649 | 649 |
| 650 } // namespace content | 650 } // namespace content |
| 651 | 651 |
| 652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 652 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |