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_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "content/common/content_client.h" | 11 #include "content/common/content_client.h" |
12 | 12 |
13 class BrowserRenderProcessHost; | 13 class BrowserRenderProcessHost; |
14 class CommandLine; | 14 class CommandLine; |
15 class GURL; | 15 class GURL; |
| 16 class PluginProcessHost; |
16 class Profile; | 17 class Profile; |
17 class RenderViewHost; | 18 class RenderViewHost; |
18 class TabContents; | 19 class TabContents; |
19 class WorkerProcessHost; | 20 class WorkerProcessHost; |
20 | 21 |
21 namespace net { | 22 namespace net { |
22 class CookieList; | 23 class CookieList; |
23 class CookieOptions; | 24 class CookieOptions; |
24 } | 25 } |
25 | 26 |
26 namespace content { | 27 namespace content { |
27 | 28 |
28 class ResourceContext; | 29 class ResourceContext; |
29 class WebUIFactory; | 30 class WebUIFactory; |
30 | 31 |
31 // Embedder API for participating in browser logic. | 32 // Embedder API for participating in browser logic. |
32 class ContentBrowserClient { | 33 class ContentBrowserClient { |
33 public: | 34 public: |
34 // Notifies that a new RenderHostView has been created. | 35 // Notifies that a new RenderHostView has been created. |
35 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); | 36 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); |
36 | 37 |
37 // Notifies that a BrowserRenderProcessHost has been created. This is called | 38 // Notifies that a BrowserRenderProcessHost has been created. This is called |
38 // before the content layer adds its own BrowserMessageFilters, so that the | 39 // before the content layer adds its own BrowserMessageFilters, so that the |
39 // embedder's IPC filters have priority. | 40 // embedder's IPC filters have priority. |
40 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); | 41 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); |
41 | 42 |
| 43 // Notifies that a PluginProcessHost has been created. This is called |
| 44 // before the content layer adds its own message filters, so that the |
| 45 // embedder's IPC filters have priority. |
| 46 virtual void PluginProcessHostCreated(PluginProcessHost* host); |
| 47 |
42 // Notifies that a WorkerProcessHost has been created. This is called | 48 // Notifies that a WorkerProcessHost has been created. This is called |
43 // before the content layer adds its own message filters, so that the | 49 // before the content layer adds its own message filters, so that the |
44 // embedder's IPC filters have priority. | 50 // embedder's IPC filters have priority. |
45 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); | 51 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); |
46 | 52 |
47 // Gets the WebUIFactory which will be responsible for generating WebUIs. | 53 // Gets the WebUIFactory which will be responsible for generating WebUIs. |
48 virtual WebUIFactory* GetWebUIFactory(); | 54 virtual WebUIFactory* GetWebUIFactory(); |
49 | 55 |
50 // Get the effective URL for the given actual URL, to allow an embedder to | 56 // Get the effective URL for the given actual URL, to allow an embedder to |
51 // group different url schemes in the same SiteInstance. | 57 // group different url schemes in the same SiteInstance. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 | 98 |
93 #if defined(OS_LINUX) | 99 #if defined(OS_LINUX) |
94 // Can return an optional fd for crash handling, otherwise returns -1. | 100 // Can return an optional fd for crash handling, otherwise returns -1. |
95 virtual int GetCrashSignalFD(const std::string& process_type); | 101 virtual int GetCrashSignalFD(const std::string& process_type); |
96 #endif | 102 #endif |
97 }; | 103 }; |
98 | 104 |
99 } // namespace content | 105 } // namespace content |
100 | 106 |
101 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 107 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |