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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 class ResourceContext; | 28 class ResourceContext; |
29 class WebUIFactory; | 29 class WebUIFactory; |
30 | 30 |
31 // Embedder API for participating in browser logic. | 31 // Embedder API for participating in browser logic. |
32 class ContentBrowserClient { | 32 class ContentBrowserClient { |
33 public: | 33 public: |
34 // Notifies that a new RenderHostView has been created. | 34 // Notifies that a new RenderHostView has been created. |
35 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); | 35 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); |
36 | 36 |
37 // Notifies that a BrowserRenderProcessHost has been created. | 37 // Notifies that a BrowserRenderProcessHost has been created. This is called |
| 38 // before the content layer adds its own BrowserMessageFilters, so that the |
| 39 // embedder's IPC filters have priority. |
38 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); | 40 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); |
39 | 41 |
40 // Notifies that a WorkerProcessHost has been created. | 42 // Notifies that a WorkerProcessHost has been created. This is called |
| 43 // before the content layer adds its own message filters, so that the |
| 44 // embedder's IPC filters have priority. |
41 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); | 45 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); |
42 | 46 |
43 // Gets the WebUIFactory which will be responsible for generating WebUIs. | 47 // Gets the WebUIFactory which will be responsible for generating WebUIs. |
44 virtual WebUIFactory* GetWebUIFactory(); | 48 virtual WebUIFactory* GetWebUIFactory(); |
45 | 49 |
46 // Get the effective URL for the given actual URL, to allow an embedder to | 50 // Get the effective URL for the given actual URL, to allow an embedder to |
47 // group different url schemes in the same SiteInstance. | 51 // group different url schemes in the same SiteInstance. |
48 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); | 52 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); |
49 | 53 |
50 // See RenderViewHostDelegate's comment. | 54 // See RenderViewHostDelegate's comment. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 92 |
89 #if defined(OS_LINUX) | 93 #if defined(OS_LINUX) |
90 // Can return an optional fd for crash handling, otherwise returns -1. | 94 // Can return an optional fd for crash handling, otherwise returns -1. |
91 virtual int GetCrashSignalFD(const std::string& process_type); | 95 virtual int GetCrashSignalFD(const std::string& process_type); |
92 #endif | 96 #endif |
93 }; | 97 }; |
94 | 98 |
95 } // namespace content | 99 } // namespace content |
96 | 100 |
97 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 101 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |