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/values.h" | 17 #include "base/values.h" |
18 #include "content/public/browser/certificate_request_result_type.h" | 18 #include "content/public/browser/certificate_request_result_type.h" |
19 #include "content/public/browser/desktop_notification_delegate.h" | 19 #include "content/public/browser/desktop_notification_delegate.h" |
20 #include "content/public/common/content_client.h" | 20 #include "content/public/common/content_client.h" |
21 #include "content/public/common/resource_type.h" | 21 #include "content/public/common/resource_type.h" |
22 #include "content/public/common/socket_permission_request.h" | 22 #include "content/public/common/socket_permission_request.h" |
23 #include "content/public/common/window_container_type.h" | 23 #include "content/public/common/window_container_type.h" |
24 #include "net/base/mime_util.h" | 24 #include "net/base/mime_util.h" |
25 #include "net/cookies/canonical_cookie.h" | 25 #include "net/cookies/canonical_cookie.h" |
26 #include "net/url_request/url_request_interceptor.h" | 26 #include "net/url_request/url_request_interceptor.h" |
27 #include "net/url_request/url_request_job_factory.h" | 27 #include "net/url_request/url_request_job_factory.h" |
28 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" | 28 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" |
29 #include "ui/base/window_open_disposition.h" | 29 #include "ui/base/window_open_disposition.h" |
30 #include "webkit/browser/fileapi/file_system_context.h" | 30 #include "storage/browser/fileapi/file_system_context.h" |
31 | 31 |
32 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 32 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
33 #include "base/posix/global_descriptors.h" | 33 #include "base/posix/global_descriptors.h" |
34 #endif | 34 #endif |
35 | 35 |
36 #if defined(OS_POSIX) | 36 #if defined(OS_POSIX) |
37 #include "content/public/browser/file_descriptor_info.h" | 37 #include "content/public/browser/file_descriptor_info.h" |
38 #endif | 38 #endif |
39 | 39 |
40 class GURL; | 40 class GURL; |
(...skipping 26 matching lines...) Expand all Loading... |
67 } | 67 } |
68 | 68 |
69 namespace sandbox { | 69 namespace sandbox { |
70 class TargetPolicy; | 70 class TargetPolicy; |
71 } | 71 } |
72 | 72 |
73 namespace ui { | 73 namespace ui { |
74 class SelectFilePolicy; | 74 class SelectFilePolicy; |
75 } | 75 } |
76 | 76 |
77 namespace fileapi { | 77 namespace storage { |
78 class ExternalMountPoints; | 78 class ExternalMountPoints; |
79 class FileSystemBackend; | 79 class FileSystemBackend; |
80 } | 80 } |
81 | 81 |
82 namespace content { | 82 namespace content { |
83 | 83 |
84 class AccessTokenStore; | 84 class AccessTokenStore; |
85 class BrowserChildProcessHost; | 85 class BrowserChildProcessHost; |
86 class BrowserContext; | 86 class BrowserContext; |
87 class BrowserMainParts; | 87 class BrowserMainParts; |
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 577 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
578 WebContents* web_contents); | 578 WebContents* web_contents); |
579 | 579 |
580 // Returns additional allowed scheme set which can access files in | 580 // Returns additional allowed scheme set which can access files in |
581 // FileSystem API. | 581 // FileSystem API. |
582 virtual void GetAdditionalAllowedSchemesForFileSystem( | 582 virtual void GetAdditionalAllowedSchemesForFileSystem( |
583 std::vector<std::string>* additional_schemes) {} | 583 std::vector<std::string>* additional_schemes) {} |
584 | 584 |
585 // Returns auto mount handlers for URL requests for FileSystem APIs. | 585 // Returns auto mount handlers for URL requests for FileSystem APIs. |
586 virtual void GetURLRequestAutoMountHandlers( | 586 virtual void GetURLRequestAutoMountHandlers( |
587 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {} | 587 std::vector<storage::URLRequestAutoMountHandler>* handlers) {} |
588 | 588 |
589 // Returns additional file system backends for FileSystem API. | 589 // Returns additional file system backends for FileSystem API. |
590 // |browser_context| is needed in the additional FileSystemBackends. | 590 // |browser_context| is needed in the additional FileSystemBackends. |
591 // It has mount points to create objects returned by additional | 591 // It has mount points to create objects returned by additional |
592 // FileSystemBackends, and SpecialStoragePolicy for permission granting. | 592 // FileSystemBackends, and SpecialStoragePolicy for permission granting. |
593 virtual void GetAdditionalFileSystemBackends( | 593 virtual void GetAdditionalFileSystemBackends( |
594 BrowserContext* browser_context, | 594 BrowserContext* browser_context, |
595 const base::FilePath& storage_partition_path, | 595 const base::FilePath& storage_partition_path, |
596 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} | 596 ScopedVector<storage::FileSystemBackend>* additional_backends) {} |
597 | 597 |
598 // Allows an embedder to return its own LocationProvider implementation. | 598 // Allows an embedder to return its own LocationProvider implementation. |
599 // Return NULL to use the default one for the platform to be created. | 599 // Return NULL to use the default one for the platform to be created. |
600 // FYI: Used by an external project; please don't remove. | 600 // FYI: Used by an external project; please don't remove. |
601 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more | 601 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more |
602 // information. | 602 // information. |
603 virtual LocationProvider* OverrideSystemLocationProvider(); | 603 virtual LocationProvider* OverrideSystemLocationProvider(); |
604 | 604 |
605 // Allows an embedder to return its own VibrationProvider implementation. | 605 // Allows an embedder to return its own VibrationProvider implementation. |
606 // Return NULL to use the default one for the platform to be created. | 606 // Return NULL to use the default one for the platform to be created. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
655 // implementation. Return NULL to disable external surface video. | 655 // implementation. Return NULL to disable external surface video. |
656 virtual ExternalVideoSurfaceContainer* | 656 virtual ExternalVideoSurfaceContainer* |
657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
658 #endif | 658 #endif |
659 }; | 659 }; |
660 | 660 |
661 } // namespace content | 661 } // namespace content |
662 | 662 |
663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |