| 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> |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <string> | 12 #include <string> |
| 13 #include <utility> | 13 #include <utility> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/callback_forward.h" | 16 #include "base/callback_forward.h" |
| 17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "content/public/browser/certificate_request_result_type.h" | 20 #include "content/public/browser/certificate_request_result_type.h" |
| 21 #include "content/public/browser/navigation_throttle.h" | 21 #include "content/public/browser/navigation_throttle.h" |
| 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/resource_type.h" | 24 #include "content/public/common/resource_type.h" |
| 25 #include "content/public/common/service_info.h" | 25 #include "content/public/common/service_info.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 "media/mojo/interfaces/remoting.mojom.h" |
| 29 #include "net/base/mime_util.h" | 30 #include "net/base/mime_util.h" |
| 30 #include "net/cookies/canonical_cookie.h" | 31 #include "net/cookies/canonical_cookie.h" |
| 31 #include "storage/browser/fileapi/file_system_context.h" | 32 #include "storage/browser/fileapi/file_system_context.h" |
| 32 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 33 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
| 33 #include "ui/base/page_transition_types.h" | 34 #include "ui/base/page_transition_types.h" |
| 34 #include "ui/base/window_open_disposition.h" | 35 #include "ui/base/window_open_disposition.h" |
| 35 | 36 |
| 36 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 37 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 37 #include "base/posix/global_descriptors.h" | 38 #include "base/posix/global_descriptors.h" |
| 38 #endif | 39 #endif |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 // Returns the AppContainer SID for the specified sandboxed process type, or | 767 // Returns the AppContainer SID for the specified sandboxed process type, or |
| 767 // empty string if this sandboxed process type does not support living inside | 768 // empty string if this sandboxed process type does not support living inside |
| 768 // an AppContainer. | 769 // an AppContainer. |
| 769 virtual base::string16 GetAppContainerSidForSandboxType( | 770 virtual base::string16 GetAppContainerSidForSandboxType( |
| 770 int sandbox_type) const; | 771 int sandbox_type) const; |
| 771 #endif | 772 #endif |
| 772 | 773 |
| 773 // Returns an instance of MemoryCoordinatorDelegate. | 774 // Returns an instance of MemoryCoordinatorDelegate. |
| 774 virtual std::unique_ptr<MemoryCoordinatorDelegate> | 775 virtual std::unique_ptr<MemoryCoordinatorDelegate> |
| 775 GetMemoryCoordinatorDelegate(); | 776 GetMemoryCoordinatorDelegate(); |
| 777 |
| 778 // Binds a new media remoter service to |request|, if supported by the |
| 779 // embedder, for the |source| that lives in the render frame represented |
| 780 // by |render_frame_host|. This may be called multiple times if there is more |
| 781 // than one source candidate in the same render frame. |
| 782 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
| 783 media::mojom::RemotingSourcePtr source, |
| 784 media::mojom::RemoterRequest request) {} |
| 776 }; | 785 }; |
| 777 | 786 |
| 778 } // namespace content | 787 } // namespace content |
| 779 | 788 |
| 780 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 789 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |