| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 class FileSystemBackend; | 78 class FileSystemBackend; |
| 79 } | 79 } |
| 80 | 80 |
| 81 namespace content { | 81 namespace content { |
| 82 | 82 |
| 83 class AccessTokenStore; | 83 class AccessTokenStore; |
| 84 class BrowserChildProcessHost; | 84 class BrowserChildProcessHost; |
| 85 class BrowserContext; | 85 class BrowserContext; |
| 86 class BrowserMainParts; | 86 class BrowserMainParts; |
| 87 class BrowserPluginGuestDelegate; | 87 class BrowserPluginGuestDelegate; |
| 88 class BrowserPluginGuestManagerDelegate; |
| 88 class BrowserPpapiHost; | 89 class BrowserPpapiHost; |
| 89 class BrowserURLHandler; | 90 class BrowserURLHandler; |
| 90 class DesktopNotificationDelegate; | 91 class DesktopNotificationDelegate; |
| 91 class ExternalVideoSurfaceContainer; | 92 class ExternalVideoSurfaceContainer; |
| 92 class LocationProvider; | 93 class LocationProvider; |
| 93 class MediaObserver; | 94 class MediaObserver; |
| 94 class QuotaPermissionContext; | 95 class QuotaPermissionContext; |
| 95 class RenderFrameHost; | 96 class RenderFrameHost; |
| 96 class RenderProcessHost; | 97 class RenderProcessHost; |
| 97 class RenderViewHost; | 98 class RenderViewHost; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual WebContentsViewPort* OverrideCreateWebContentsView( | 143 virtual WebContentsViewPort* OverrideCreateWebContentsView( |
| 143 WebContents* web_contents, | 144 WebContents* web_contents, |
| 144 RenderViewHostDelegateView** render_view_host_delegate_view); | 145 RenderViewHostDelegateView** render_view_host_delegate_view); |
| 145 | 146 |
| 146 // If content creates the WebContentsView implementation, it will ask the | 147 // If content creates the WebContentsView implementation, it will ask the |
| 147 // embedder to return an (optional) delegate to customize it. The view will | 148 // embedder to return an (optional) delegate to customize it. The view will |
| 148 // own the delegate. | 149 // own the delegate. |
| 149 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( | 150 virtual WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 150 WebContents* web_contents); | 151 WebContents* web_contents); |
| 151 | 152 |
| 153 // Notifies that a guest WebContents manager has been created. |
| 154 // |guest_manager_delegate| is a return parameter pointing to the delegate in |
| 155 // the content embedder. |
| 156 virtual BrowserPluginGuestManagerDelegate* GetGuestManagerDelegate( |
| 157 BrowserContext* context); |
| 158 |
| 152 // Notifies that a guest WebContents has been created. A guest WebContents | 159 // Notifies that a guest WebContents has been created. A guest WebContents |
| 153 // represents a renderer that's hosted within a BrowserPlugin. Creation can | 160 // represents a renderer that's hosted within a BrowserPlugin. Creation can |
| 154 // occur an arbitrary length of time before attachment. If the new guest has | 161 // occur an arbitrary length of time before attachment. If the new guest has |
| 155 // an |opener_web_contents|, then it's a new window created by that opener. | 162 // an |opener_web_contents|, then it's a new window created by that opener. |
| 156 // If the guest was created via navigation, then |extra_params| will be | 163 // If the guest was created via navigation, then |extra_params| will be |
| 157 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object | 164 // non-NULL. |extra_params| are parameters passed to the BrowserPlugin object |
| 158 // element by the content embedder. These parameters may include the API to | 165 // element by the content embedder. These parameters may include the API to |
| 159 // enable for the given guest. |guest_delegate| is a return parameter of | 166 // enable for the given guest. |guest_delegate| is a return parameter of |
| 160 // the delegate in the content embedder that will service the guest in the | 167 // the delegate in the content embedder that will service the guest in the |
| 161 // content layer. The content layer takes ownership of the |guest_delegate|. | 168 // content layer. The content layer takes ownership of the |guest_delegate|. |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 649 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 643 // implementation. Return NULL to disable external surface video. | 650 // implementation. Return NULL to disable external surface video. |
| 644 virtual ExternalVideoSurfaceContainer* | 651 virtual ExternalVideoSurfaceContainer* |
| 645 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 652 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 646 #endif | 653 #endif |
| 647 }; | 654 }; |
| 648 | 655 |
| 649 } // namespace content | 656 } // namespace content |
| 650 | 657 |
| 651 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 658 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |