| 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/file_descriptor_info.h" | 19 #include "content/public/browser/file_descriptor_info.h" |
| 20 #include "content/public/common/content_client.h" | 20 #include "content/public/common/content_client.h" |
| 21 #include "content/public/common/socket_permission_request.h" | 21 #include "content/public/common/socket_permission_request.h" |
| 22 #include "content/public/common/window_container_type.h" | 22 #include "content/public/common/window_container_type.h" |
| 23 #include "net/base/mime_util.h" | 23 #include "net/base/mime_util.h" |
| 24 #include "net/cookies/canonical_cookie.h" | 24 #include "net/cookies/canonical_cookie.h" |
| 25 #include "net/url_request/url_request_job_factory.h" | 25 #include "net/url_request/url_request_job_factory.h" |
| 26 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" | 26 #include "third_party/WebKit/public/web/WebNotificationPresenter.h" |
| 27 #include "ui/base/window_open_disposition.h" | 27 #include "ui/base/window_open_disposition.h" |
| 28 #include "webkit/browser/fileapi/file_system_context.h" | |
| 29 #include "webkit/common/resource_type.h" | 28 #include "webkit/common/resource_type.h" |
| 30 | 29 |
| 31 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 30 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 32 #include "base/posix/global_descriptors.h" | 31 #include "base/posix/global_descriptors.h" |
| 33 #endif | 32 #endif |
| 34 | 33 |
| 35 class CommandLine; | 34 class CommandLine; |
| 36 class GURL; | 35 class GURL; |
| 37 struct WebPreferences; | 36 struct WebPreferences; |
| 38 | 37 |
| (...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 568 |
| 570 // Returns an implementation of a file selecition policy. Can return NULL. | 569 // Returns an implementation of a file selecition policy. Can return NULL. |
| 571 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 570 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
| 572 WebContents* web_contents); | 571 WebContents* web_contents); |
| 573 | 572 |
| 574 // Returns additional allowed scheme set which can access files in | 573 // Returns additional allowed scheme set which can access files in |
| 575 // FileSystem API. | 574 // FileSystem API. |
| 576 virtual void GetAdditionalAllowedSchemesForFileSystem( | 575 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 577 std::vector<std::string>* additional_schemes) {} | 576 std::vector<std::string>* additional_schemes) {} |
| 578 | 577 |
| 579 // Returns auto mount handlers for URL requests for FileSystem APIs. | |
| 580 virtual void GetURLRequestAutoMountHandlers( | |
| 581 std::vector<fileapi::URLRequestAutoMountHandler>* handlers) {} | |
| 582 | |
| 583 // Returns additional file system backends for FileSystem API. | 578 // Returns additional file system backends for FileSystem API. |
| 584 // |browser_context| is needed in the additional FileSystemBackends. | 579 // |browser_context| is needed in the additional FileSystemBackends. |
| 585 // It has mount points to create objects returned by additional | 580 // It has mount points to create objects returned by additional |
| 586 // FileSystemBackends, and SpecialStoragePolicy for permission granting. | 581 // FileSystemBackends, and SpecialStoragePolicy for permission granting. |
| 587 virtual void GetAdditionalFileSystemBackends( | 582 virtual void GetAdditionalFileSystemBackends( |
| 588 BrowserContext* browser_context, | 583 BrowserContext* browser_context, |
| 589 const base::FilePath& storage_partition_path, | 584 const base::FilePath& storage_partition_path, |
| 590 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} | 585 ScopedVector<fileapi::FileSystemBackend>* additional_backends) {} |
| 591 | 586 |
| 592 // Allows an embedder to return its own LocationProvider implementation. | 587 // Allows an embedder to return its own LocationProvider implementation. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 // Returns a special cookie store to use for a given render process, or NULL | 630 // Returns a special cookie store to use for a given render process, or NULL |
| 636 // if the default cookie store should be used | 631 // if the default cookie store should be used |
| 637 // This is called on the IO thread. | 632 // This is called on the IO thread. |
| 638 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 633 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
| 639 int render_process_id_); | 634 int render_process_id_); |
| 640 }; | 635 }; |
| 641 | 636 |
| 642 } // namespace content | 637 } // namespace content |
| 643 | 638 |
| 644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 639 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |