| 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> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "content/public/common/resource_type.h" | 22 #include "content/public/common/resource_type.h" |
| 23 #include "content/public/common/socket_permission_request.h" | 23 #include "content/public/common/socket_permission_request.h" |
| 24 #include "content/public/common/window_container_type.h" | 24 #include "content/public/common/window_container_type.h" |
| 25 #include "net/base/mime_util.h" | 25 #include "net/base/mime_util.h" |
| 26 #include "net/cookies/canonical_cookie.h" | 26 #include "net/cookies/canonical_cookie.h" |
| 27 #include "net/url_request/url_request_interceptor.h" | 27 #include "net/url_request/url_request_interceptor.h" |
| 28 #include "net/url_request/url_request_job_factory.h" | 28 #include "net/url_request/url_request_job_factory.h" |
| 29 #include "storage/browser/fileapi/file_system_context.h" | 29 #include "storage/browser/fileapi/file_system_context.h" |
| 30 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" | 30 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" |
| 31 #include "ui/base/window_open_disposition.h" | 31 #include "ui/base/window_open_disposition.h" |
| 32 #include "ui/gfx/native_widget_types.h" |
| 32 | 33 |
| 33 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 34 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 34 #include "base/posix/global_descriptors.h" | 35 #include "base/posix/global_descriptors.h" |
| 35 #endif | 36 #endif |
| 36 | 37 |
| 37 #if defined(OS_POSIX) | 38 #if defined(OS_POSIX) |
| 38 #include "content/public/browser/file_descriptor_info.h" | 39 #include "content/public/browser/file_descriptor_info.h" |
| 39 #endif | 40 #endif |
| 40 | 41 |
| 41 class GURL; | 42 class GURL; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Allows the embedder to set any number of custom BrowserMainParts | 134 // Allows the embedder to set any number of custom BrowserMainParts |
| 134 // implementations for the browser startup code. See comments in | 135 // implementations for the browser startup code. See comments in |
| 135 // browser_main_parts.h. | 136 // browser_main_parts.h. |
| 136 virtual BrowserMainParts* CreateBrowserMainParts( | 137 virtual BrowserMainParts* CreateBrowserMainParts( |
| 137 const MainFunctionParams& parameters); | 138 const MainFunctionParams& parameters); |
| 138 | 139 |
| 139 // If content creates the WebContentsView implementation, it will ask the | 140 // If content creates the WebContentsView implementation, it will ask the |
| 140 // embedder to return an (optional) delegate to customize it. The view will | 141 // embedder to return an (optional) delegate to customize it. The view will |
| 141 // own the delegate. | 142 // own the delegate. |
| 142 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 143 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 143 WebContents* web_contents); | 144 WebContents* web_contents, |
| 145 gfx::NativeView context); |
| 144 | 146 |
| 145 // Notifies that a render process will be created. This is called before | 147 // Notifies that a render process will be created. This is called before |
| 146 // the content layer adds its own BrowserMessageFilters, so that the | 148 // the content layer adds its own BrowserMessageFilters, so that the |
| 147 // embedder's IPC filters have priority. | 149 // embedder's IPC filters have priority. |
| 148 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} | 150 virtual void RenderProcessWillLaunch(RenderProcessHost* host) {} |
| 149 | 151 |
| 150 // Notifies that a BrowserChildProcessHost has been created. | 152 // Notifies that a BrowserChildProcessHost has been created. |
| 151 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} | 153 virtual void BrowserChildProcessHostCreated(BrowserChildProcessHost* host) {} |
| 152 | 154 |
| 153 // Get the effective URL for the given actual URL, to allow an embedder to | 155 // Get the effective URL for the given actual URL, to allow an embedder to |
| (...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // camera. Note that this does not query the user. |type| must be | 654 // camera. Note that this does not query the user. |type| must be |
| 653 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 655 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
| 654 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 656 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
| 655 const GURL& security_origin, | 657 const GURL& security_origin, |
| 656 MediaStreamType type); | 658 MediaStreamType type); |
| 657 }; | 659 }; |
| 658 | 660 |
| 659 } // namespace content | 661 } // namespace content |
| 660 | 662 |
| 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |