| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "content/public/common/content_client.h" | 22 #include "content/public/common/content_client.h" |
| 23 #include "content/public/common/media_stream_request.h" | 23 #include "content/public/common/media_stream_request.h" |
| 24 #include "content/public/common/mojo_application_info.h" | 24 #include "content/public/common/mojo_application_info.h" |
| 25 #include "content/public/common/resource_type.h" | 25 #include "content/public/common/resource_type.h" |
| 26 #include "content/public/common/socket_permission_request.h" | 26 #include "content/public/common/socket_permission_request.h" |
| 27 #include "content/public/common/window_container_type.h" | 27 #include "content/public/common/window_container_type.h" |
| 28 #include "media/audio/audio_manager.h" | 28 #include "media/audio/audio_manager.h" |
| 29 #include "net/base/mime_util.h" | 29 #include "net/base/mime_util.h" |
| 30 #include "net/cookies/canonical_cookie.h" | 30 #include "net/cookies/canonical_cookie.h" |
| 31 #include "storage/browser/fileapi/file_system_context.h" | 31 #include "storage/browser/fileapi/file_system_context.h" |
| 32 #include "storage/browser/quota/quota_manager.h" |
| 32 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 33 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 33 #include "ui/base/window_open_disposition.h" | 34 #include "ui/base/window_open_disposition.h" |
| 34 | 35 |
| 35 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 36 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 36 #include "base/posix/global_descriptors.h" | 37 #include "base/posix/global_descriptors.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 #if defined(OS_POSIX) | 40 #if defined(OS_POSIX) |
| 40 #include "content/public/browser/file_descriptor_info.h" | 41 #include "content/public/browser/file_descriptor_info.h" |
| 41 #endif | 42 #endif |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 bool* in_memory); | 447 bool* in_memory); |
| 447 | 448 |
| 448 // Create and return a new quota permission context. | 449 // Create and return a new quota permission context. |
| 449 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 450 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 450 | 451 |
| 451 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for | 452 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for |
| 452 // temporary storage. | 453 // temporary storage. |
| 453 virtual std::unique_ptr<storage::QuotaEvictionPolicy> | 454 virtual std::unique_ptr<storage::QuotaEvictionPolicy> |
| 454 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 455 GetTemporaryStorageEvictionPolicy(BrowserContext* context); |
| 455 | 456 |
| 457 virtual void GetTemporaryStorageConfiguration( |
| 458 content::BrowserContext* context, |
| 459 const base::FilePath& partition_path, bool is_incognito, |
| 460 const storage::TemporaryStorageConfigurationCallback& callback); |
| 461 |
| 456 // Informs the embedder that a certificate error has occured. If | 462 // Informs the embedder that a certificate error has occured. If |
| 457 // |overridable| is true and if |strict_enforcement| is false, the user | 463 // |overridable| is true and if |strict_enforcement| is false, the user |
| 458 // can ignore the error and continue. The embedder can call the callback | 464 // can ignore the error and continue. The embedder can call the callback |
| 459 // asynchronously. | 465 // asynchronously. |
| 460 virtual void AllowCertificateError( | 466 virtual void AllowCertificateError( |
| 461 WebContents* web_contents, | 467 WebContents* web_contents, |
| 462 int cert_error, | 468 int cert_error, |
| 463 const net::SSLInfo& ssl_info, | 469 const net::SSLInfo& ssl_info, |
| 464 const GURL& request_url, | 470 const GURL& request_url, |
| 465 ResourceType resource_type, | 471 ResourceType resource_type, |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // Returns whether the Win32k lockdown process mitigation should be applied to | 789 // Returns whether the Win32k lockdown process mitigation should be applied to |
| 784 // a process hosting a plugin with the specified |mime_type|. | 790 // a process hosting a plugin with the specified |mime_type|. |
| 785 virtual bool IsWin32kLockdownEnabledForMimeType( | 791 virtual bool IsWin32kLockdownEnabledForMimeType( |
| 786 const std::string& mime_type) const; | 792 const std::string& mime_type) const; |
| 787 #endif | 793 #endif |
| 788 }; | 794 }; |
| 789 | 795 |
| 790 } // namespace content | 796 } // namespace content |
| 791 | 797 |
| 792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |