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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/file_path.h" |
| 12 #include "base/process.h" |
9 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
10 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNavigationPolicy.h
" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPageVisibilityStat
e.h" |
13 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
14 | 18 |
15 struct WebPreferences; | 19 struct WebPreferences; |
16 | 20 |
17 namespace WebKit { | 21 namespace WebKit { |
18 class WebFrame; | 22 class WebFrame; |
19 class WebNode; | 23 class WebNode; |
20 class WebPlugin; | 24 class WebPlugin; |
21 class WebString; | 25 class WebString; |
22 class WebURLRequest; | 26 class WebURLRequest; |
23 class WebView; | 27 class WebView; |
24 struct WebContextMenuData; | 28 struct WebContextMenuData; |
25 struct WebPluginParams; | 29 struct WebPluginParams; |
26 } | 30 } |
27 | 31 |
| 32 namespace IPC { |
| 33 struct ChannelHandle; |
| 34 } |
| 35 |
28 namespace gfx { | 36 namespace gfx { |
29 class Size; | 37 class Size; |
30 } | 38 } |
31 | 39 |
32 namespace webkit { | 40 namespace webkit { |
33 struct WebPluginInfo; | 41 struct WebPluginInfo; |
34 } | 42 } |
35 | 43 |
36 namespace content { | 44 namespace content { |
37 | 45 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // Displays a modal alert dialog containing the given message. Returns | 129 // Displays a modal alert dialog containing the given message. Returns |
122 // once the user dismisses the dialog. | 130 // once the user dismisses the dialog. |
123 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, | 131 virtual void RunModalAlertDialog(WebKit::WebFrame* frame, |
124 const WebKit::WebString& message) = 0; | 132 const WebKit::WebString& message) = 0; |
125 | 133 |
126 // The client should handle the navigation externally. | 134 // The client should handle the navigation externally. |
127 virtual void LoadURLExternally( | 135 virtual void LoadURLExternally( |
128 WebKit::WebFrame* frame, | 136 WebKit::WebFrame* frame, |
129 const WebKit::WebURLRequest& request, | 137 const WebKit::WebURLRequest& request, |
130 WebKit::WebNavigationPolicy policy) = 0; | 138 WebKit::WebNavigationPolicy policy) = 0; |
| 139 |
| 140 // Creates the renderer side of an out-of-process Pepper plugin's IPC proxy. |
| 141 virtual void CreatePepperHostDispatcher( |
| 142 const FilePath& plugin_path, |
| 143 int plugin_child_id, |
| 144 base::ProcessHandle plugin_process_handle, |
| 145 const IPC::ChannelHandle& channel_handle) = 0; |
131 }; | 146 }; |
132 | 147 |
133 } // namespace content | 148 } // namespace content |
134 | 149 |
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 150 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |