| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "content/public/common/window_container_type.h" | 13 #include "content/public/common/window_container_type.h" |
| 14 #include "content/public/common/content_client.h" | 14 #include "content/public/common/content_client.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 16 | 16 |
| 17 class AccessTokenStore; | 17 class AccessTokenStore; |
| 18 class BrowserRenderProcessHost; | 18 class RenderProcessHost; |
| 19 class BrowserURLHandler; | 19 class BrowserURLHandler; |
| 20 class CommandLine; | 20 class CommandLine; |
| 21 class DevToolsManager; | 21 class DevToolsManager; |
| 22 class FilePath; | 22 class FilePath; |
| 23 class GURL; | 23 class GURL; |
| 24 class MHTMLGenerationManager; | 24 class MHTMLGenerationManager; |
| 25 class PluginProcessHost; | 25 class PluginProcessHost; |
| 26 class QuotaPermissionContext; | 26 class QuotaPermissionContext; |
| 27 class RenderProcessHost; | 27 class RenderProcessHost; |
| 28 class RenderViewHost; | 28 class RenderViewHost; |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // The RenderWidgetHost must already be created (because we can't know if it's | 101 // The RenderWidgetHost must already be created (because we can't know if it's |
| 102 // going to be a regular RenderWidgetHost or a RenderViewHost (a subclass). | 102 // going to be a regular RenderWidgetHost or a RenderViewHost (a subclass). |
| 103 virtual RenderWidgetHostView* CreateViewForWidget( | 103 virtual RenderWidgetHostView* CreateViewForWidget( |
| 104 RenderWidgetHost* widget) = 0; | 104 RenderWidgetHost* widget) = 0; |
| 105 | 105 |
| 106 virtual TabContentsView* CreateTabContentsView(TabContents* tab_contents) = 0; | 106 virtual TabContentsView* CreateTabContentsView(TabContents* tab_contents) = 0; |
| 107 | 107 |
| 108 // Notifies that a new RenderHostView has been created. | 108 // Notifies that a new RenderHostView has been created. |
| 109 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) = 0; | 109 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) = 0; |
| 110 | 110 |
| 111 // Notifies that a BrowserRenderProcessHost has been created. This is called | 111 // Notifies that a RenderProcessHost has been created. This is called before |
| 112 // before the content layer adds its own BrowserMessageFilters, so that the | 112 // the content layer adds its own BrowserMessageFilters, so that the |
| 113 // embedder's IPC filters have priority. | 113 // embedder's IPC filters have priority. |
| 114 virtual void BrowserRenderProcessHostCreated( | 114 virtual void RenderProcessHostCreated( |
| 115 BrowserRenderProcessHost* host) = 0; | 115 RenderProcessHost* host) = 0; |
| 116 | 116 |
| 117 // Notifies that a PluginProcessHost has been created. This is called | 117 // Notifies that a PluginProcessHost has been created. This is called |
| 118 // before the content layer adds its own message filters, so that the | 118 // before the content layer adds its own message filters, so that the |
| 119 // embedder's IPC filters have priority. | 119 // embedder's IPC filters have priority. |
| 120 virtual void PluginProcessHostCreated(PluginProcessHost* host) = 0; | 120 virtual void PluginProcessHostCreated(PluginProcessHost* host) = 0; |
| 121 | 121 |
| 122 // Gets the WebUIFactory which will be responsible for generating WebUIs. | 122 // Gets the WebUIFactory which will be responsible for generating WebUIs. |
| 123 virtual WebUIFactory* GetWebUIFactory() = 0; | 123 virtual WebUIFactory* GetWebUIFactory() = 0; |
| 124 | 124 |
| 125 // Get the effective URL for the given actual URL, to allow an embedder to | 125 // Get the effective URL for the given actual URL, to allow an embedder to |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 // This is called on a worker thread. | 363 // This is called on a worker thread. |
| 364 virtual | 364 virtual |
| 365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 365 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 366 const GURL& url) = 0; | 366 const GURL& url) = 0; |
| 367 #endif | 367 #endif |
| 368 }; | 368 }; |
| 369 | 369 |
| 370 } // namespace content | 370 } // namespace content |
| 371 | 371 |
| 372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 372 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |