| 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 "content/public/browser/file_descriptor_info.h" | 17 #include "content/public/browser/file_descriptor_info.h" |
| 18 #include "content/public/common/content_client.h" |
| 17 #include "content/public/common/socket_permission_request.h" | 19 #include "content/public/common/socket_permission_request.h" |
| 18 #include "content/public/common/content_client.h" | |
| 19 #include "content/public/common/window_container_type.h" | 20 #include "content/public/common/window_container_type.h" |
| 20 #include "net/base/mime_util.h" | 21 #include "net/base/mime_util.h" |
| 21 #include "net/cookies/canonical_cookie.h" | 22 #include "net/cookies/canonical_cookie.h" |
| 22 #include "net/url_request/url_request_job_factory.h" | 23 #include "net/url_request/url_request_job_factory.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 24 #include "webkit/glue/resource_type.h" | 25 #include "webkit/glue/resource_type.h" |
| 25 | 26 |
| 26 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 27 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 27 #include "base/posix/global_descriptors.h" | 28 #include "base/posix/global_descriptors.h" |
| 28 #endif | 29 #endif |
| (...skipping 25 matching lines...) Expand all Loading... |
| 54 } | 55 } |
| 55 | 56 |
| 56 namespace sandbox { | 57 namespace sandbox { |
| 57 class TargetPolicy; | 58 class TargetPolicy; |
| 58 } | 59 } |
| 59 | 60 |
| 60 namespace ui { | 61 namespace ui { |
| 61 class SelectFilePolicy; | 62 class SelectFilePolicy; |
| 62 } | 63 } |
| 63 | 64 |
| 65 namespace fileapi { |
| 66 class FileSystemMountPointProvider; |
| 67 } |
| 68 |
| 64 namespace webkit_glue { | 69 namespace webkit_glue { |
| 65 struct WebPreferences; | 70 struct WebPreferences; |
| 66 } | 71 } |
| 67 | 72 |
| 68 namespace content { | 73 namespace content { |
| 69 | 74 |
| 70 class AccessTokenStore; | 75 class AccessTokenStore; |
| 71 class BrowserChildProcessHost; | 76 class BrowserChildProcessHost; |
| 72 class BrowserContext; | 77 class BrowserContext; |
| 73 class BrowserMainParts; | 78 class BrowserMainParts; |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 494 |
| 490 // Returns an implementation of a file selecition policy. Can return NULL. | 495 // Returns an implementation of a file selecition policy. Can return NULL. |
| 491 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 496 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
| 492 WebContents* web_contents); | 497 WebContents* web_contents); |
| 493 | 498 |
| 494 // Returns additional allowed scheme set which can access files in | 499 // Returns additional allowed scheme set which can access files in |
| 495 // FileSystem API. | 500 // FileSystem API. |
| 496 virtual void GetAdditionalAllowedSchemesForFileSystem( | 501 virtual void GetAdditionalAllowedSchemesForFileSystem( |
| 497 std::vector<std::string>* additional_schemes) {} | 502 std::vector<std::string>* additional_schemes) {} |
| 498 | 503 |
| 504 // Returns additional MountPointProviders for FileSystem API. |
| 505 virtual void GetAdditionalFileSystemMountPointProviders( |
| 506 const base::FilePath& partition_path, |
| 507 ScopedVector<fileapi::FileSystemMountPointProvider>* |
| 508 additional_providers) {} |
| 509 |
| 499 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 510 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 500 // Populates |mappings| with all files that need to be mapped before launching | 511 // Populates |mappings| with all files that need to be mapped before launching |
| 501 // a child process. | 512 // a child process. |
| 502 virtual void GetAdditionalMappedFilesForChildProcess( | 513 virtual void GetAdditionalMappedFilesForChildProcess( |
| 503 const CommandLine& command_line, | 514 const CommandLine& command_line, |
| 504 int child_process_id, | 515 int child_process_id, |
| 505 std::vector<FileDescriptorInfo>* mappings) {} | 516 std::vector<FileDescriptorInfo>* mappings) {} |
| 506 #endif | 517 #endif |
| 507 | 518 |
| 508 #if defined(OS_WIN) | 519 #if defined(OS_WIN) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 521 // This is called on a worker thread. | 532 // This is called on a worker thread. |
| 522 virtual | 533 virtual |
| 523 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 534 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 524 const GURL& url); | 535 const GURL& url); |
| 525 #endif | 536 #endif |
| 526 }; | 537 }; |
| 527 | 538 |
| 528 } // namespace content | 539 } // namespace content |
| 529 | 540 |
| 530 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 541 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |