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 15 matching lines...) Expand all Loading... |
26 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 26 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
27 #include "base/posix/global_descriptors.h" | 27 #include "base/posix/global_descriptors.h" |
28 #endif | 28 #endif |
29 | 29 |
30 class CommandLine; | 30 class CommandLine; |
31 class GURL; | 31 class GURL; |
32 | 32 |
33 namespace base { | 33 namespace base { |
34 class FilePath; | 34 class FilePath; |
35 } | 35 } |
36 | |
37 namespace webkit_glue { | |
38 struct WebPreferences; | |
39 } | |
40 | |
41 namespace crypto { | 36 namespace crypto { |
42 class CryptoModuleBlockingPasswordDelegate; | 37 class CryptoModuleBlockingPasswordDelegate; |
43 } | 38 } |
44 | 39 |
45 namespace gfx { | 40 namespace gfx { |
46 class ImageSkia; | 41 class ImageSkia; |
47 } | 42 } |
48 | 43 |
49 namespace net { | 44 namespace net { |
50 class CookieOptions; | 45 class CookieOptions; |
51 class HttpNetworkSession; | 46 class HttpNetworkSession; |
52 class NetLog; | 47 class NetLog; |
53 class SSLCertRequestInfo; | 48 class SSLCertRequestInfo; |
54 class SSLInfo; | 49 class SSLInfo; |
55 class URLRequest; | 50 class URLRequest; |
56 class URLRequestContext; | 51 class URLRequestContext; |
57 class URLRequestContextGetter; | 52 class URLRequestContextGetter; |
58 class X509Certificate; | 53 class X509Certificate; |
59 } | 54 } |
60 | 55 |
| 56 namespace sandbox { |
| 57 class TargetPolicy; |
| 58 } |
| 59 |
61 namespace ui { | 60 namespace ui { |
62 class SelectFilePolicy; | 61 class SelectFilePolicy; |
63 } | 62 } |
64 | 63 |
| 64 namespace webkit_glue { |
| 65 struct WebPreferences; |
| 66 } |
| 67 |
65 namespace content { | 68 namespace content { |
66 | 69 |
67 class AccessTokenStore; | 70 class AccessTokenStore; |
68 class BrowserChildProcessHost; | 71 class BrowserChildProcessHost; |
69 class BrowserContext; | 72 class BrowserContext; |
70 class BrowserMainParts; | 73 class BrowserMainParts; |
71 class BrowserPpapiHost; | 74 class BrowserPpapiHost; |
72 class BrowserURLHandler; | 75 class BrowserURLHandler; |
73 class MediaObserver; | 76 class MediaObserver; |
74 class QuotaPermissionContext; | 77 class QuotaPermissionContext; |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 // a child process. | 496 // a child process. |
494 virtual void GetAdditionalMappedFilesForChildProcess( | 497 virtual void GetAdditionalMappedFilesForChildProcess( |
495 const CommandLine& command_line, | 498 const CommandLine& command_line, |
496 int child_process_id, | 499 int child_process_id, |
497 std::vector<FileDescriptorInfo>* mappings) {} | 500 std::vector<FileDescriptorInfo>* mappings) {} |
498 #endif | 501 #endif |
499 | 502 |
500 #if defined(OS_WIN) | 503 #if defined(OS_WIN) |
501 // Returns the name of the dll that contains cursors and other resources. | 504 // Returns the name of the dll that contains cursors and other resources. |
502 virtual const wchar_t* GetResourceDllName(); | 505 virtual const wchar_t* GetResourceDllName(); |
| 506 |
| 507 // This is called on the PROCESS_LAUNCHER thread before the renderer process |
| 508 // is launched. It gives the embedder a chance to add loosen the sandbox |
| 509 // policy. |
| 510 virtual void PreSpawnRenderer(sandbox::TargetPolicy* policy, |
| 511 bool* success) {} |
503 #endif | 512 #endif |
504 | 513 |
505 #if defined(USE_NSS) | 514 #if defined(USE_NSS) |
506 // Return a delegate to authenticate and unlock |module|. | 515 // Return a delegate to authenticate and unlock |module|. |
507 // This is called on a worker thread. | 516 // This is called on a worker thread. |
508 virtual | 517 virtual |
509 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 518 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
510 const GURL& url); | 519 const GURL& url); |
511 #endif | 520 #endif |
512 }; | 521 }; |
513 | 522 |
514 } // namespace content | 523 } // namespace content |
515 | 524 |
516 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 525 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |