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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 17 #include "base/platform_file.h" |
17 #include "content/public/browser/file_descriptor_info.h" | 18 #include "content/public/browser/file_descriptor_info.h" |
18 #include "content/public/common/content_client.h" | 19 #include "content/public/common/content_client.h" |
19 #include "content/public/common/socket_permission_request.h" | 20 #include "content/public/common/socket_permission_request.h" |
20 #include "content/public/common/window_container_type.h" | 21 #include "content/public/common/window_container_type.h" |
21 #include "net/base/mime_util.h" | 22 #include "net/base/mime_util.h" |
22 #include "net/cookies/canonical_cookie.h" | 23 #include "net/cookies/canonical_cookie.h" |
23 #include "net/url_request/url_request_job_factory.h" | 24 #include "net/url_request/url_request_job_factory.h" |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
25 #include "webkit/glue/resource_type.h" | 26 #include "webkit/glue/resource_type.h" |
26 | 27 |
27 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 28 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
28 #include "base/posix/global_descriptors.h" | 29 #include "base/posix/global_descriptors.h" |
29 #endif | 30 #endif |
30 | 31 |
31 class CommandLine; | 32 class CommandLine; |
32 class GURL; | 33 class GURL; |
33 struct WebPreferences; | 34 struct WebPreferences; |
34 | 35 |
35 namespace base { | 36 namespace base { |
36 class FilePath; | 37 class FilePath; |
| 38 class SharedMemory; |
37 } | 39 } |
| 40 |
38 namespace crypto { | 41 namespace crypto { |
39 class CryptoModuleBlockingPasswordDelegate; | 42 class CryptoModuleBlockingPasswordDelegate; |
40 } | 43 } |
41 | 44 |
42 namespace gfx { | 45 namespace gfx { |
43 class ImageSkia; | 46 class ImageSkia; |
44 } | 47 } |
45 | 48 |
46 namespace net { | 49 namespace net { |
47 class CookieOptions; | 50 class CookieOptions; |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 bool* success) {} | 527 bool* success) {} |
525 #endif | 528 #endif |
526 | 529 |
527 #if defined(USE_NSS) | 530 #if defined(USE_NSS) |
528 // Return a delegate to authenticate and unlock |module|. | 531 // Return a delegate to authenticate and unlock |module|. |
529 // This is called on a worker thread. | 532 // This is called on a worker thread. |
530 virtual | 533 virtual |
531 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 534 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
532 const GURL& url); | 535 const GURL& url); |
533 #endif | 536 #endif |
| 537 |
| 538 // Gets a file handle to a file were the WebRTC log is to be stored. If the |
| 539 // embedder doesn't support this feature or if initalizing fails, an invalid |
| 540 // handle is returned. |
| 541 virtual base::PlatformFile CreateWebRtcLogFile(); |
| 542 |
| 543 // Asks the embedder to upload a WebRTC log file. |
| 544 virtual void UploadWebRtcLog(base::PlatformFile log_file) {} |
534 }; | 545 }; |
535 | 546 |
536 } // namespace content | 547 } // namespace content |
537 | 548 |
538 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 549 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |