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 PluginProcessHost; |
17 class Profile; | 17 class Profile; |
18 class RenderViewHost; | 18 class RenderViewHost; |
19 class TabContents; | 19 class TabContents; |
20 class WorkerProcessHost; | 20 class WorkerProcessHost; |
21 | 21 |
22 namespace net { | 22 namespace net { |
23 class CookieList; | 23 class CookieList; |
24 class CookieOptions; | 24 class CookieOptions; |
25 } | 25 } |
26 | 26 |
27 namespace sandbox { | |
28 class TargetPolicy; | |
29 } | |
30 | |
31 namespace content { | 27 namespace content { |
32 | 28 |
33 class ResourceContext; | 29 class ResourceContext; |
34 class WebUIFactory; | 30 class WebUIFactory; |
35 | 31 |
36 // Embedder API for participating in browser logic. | 32 // Embedder API for participating in browser logic. |
37 class ContentBrowserClient { | 33 class ContentBrowserClient { |
38 public: | 34 public: |
39 // Notifies that a new RenderHostView has been created. | 35 // Notifies that a new RenderHostView has been created. |
40 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); | 36 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const std::string& cookie_line, | 98 const std::string& cookie_line, |
103 const content::ResourceContext& context, | 99 const content::ResourceContext& context, |
104 int render_process_id, | 100 int render_process_id, |
105 int render_view_id, | 101 int render_view_id, |
106 net::CookieOptions* options); | 102 net::CookieOptions* options); |
107 | 103 |
108 #if defined(OS_LINUX) | 104 #if defined(OS_LINUX) |
109 // Can return an optional fd for crash handling, otherwise returns -1. | 105 // Can return an optional fd for crash handling, otherwise returns -1. |
110 virtual int GetCrashSignalFD(const std::string& process_type); | 106 virtual int GetCrashSignalFD(const std::string& process_type); |
111 #endif | 107 #endif |
112 | |
113 #if defined(OS_WIN) | |
114 // Allows the embedder to sandbox a plugin, and apply a custom policy. | |
115 virtual bool SandboxPlugin(CommandLine* command_line, | |
116 sandbox::TargetPolicy* policy); | |
117 #endif | |
118 }; | 108 }; |
119 | 109 |
120 } // namespace content | 110 } // namespace content |
121 | 111 |
122 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 112 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |