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_BROWSER_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/browser/render_widget_host.h" | 11 #include "content/public/browser/render_widget_host.h" |
12 #include "content/public/common/page_zoom.h" | 12 #include "content/public/common/page_zoom.h" |
13 #include "content/public/common/stop_find_action.h" | 13 #include "content/public/common/stop_find_action.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragOperation.h" |
15 | 15 |
16 class FilePath; | 16 class FilePath; |
17 class GURL; | 17 class GURL; |
18 struct WebDropData; | 18 struct WebDropData; |
19 | 19 |
20 namespace webkit_glue { | 20 namespace webkit_glue { |
21 struct WebPreferences; | 21 struct WebPreferences; |
22 } | 22 } |
23 | 23 |
24 namespace gfx { | 24 namespace gfx { |
25 class Point; | 25 class Point; |
26 } | 26 } |
27 | 27 |
| 28 namespace ui { |
| 29 struct SelectedFileInfo; |
| 30 } |
| 31 |
28 namespace WebKit { | 32 namespace WebKit { |
29 struct WebFindOptions; | 33 struct WebFindOptions; |
30 struct WebMediaPlayerAction; | 34 struct WebMediaPlayerAction; |
31 struct WebPluginAction; | 35 struct WebPluginAction; |
32 } | 36 } |
33 | 37 |
34 namespace content { | 38 namespace content { |
35 | 39 |
36 class ChildProcessSecurityPolicy; | 40 class ChildProcessSecurityPolicy; |
37 class RenderViewHostDelegate; | 41 class RenderViewHostDelegate; |
38 class SessionStorageNamespace; | 42 class SessionStorageNamespace; |
39 class SiteInstance; | 43 class SiteInstance; |
40 struct CustomContextMenuContext; | 44 struct CustomContextMenuContext; |
41 struct SelectedFileInfo; | |
42 | 45 |
43 // A RenderViewHost is responsible for creating and talking to a RenderView | 46 // A RenderViewHost is responsible for creating and talking to a RenderView |
44 // object in a child process. It exposes a high level API to users, for things | 47 // object in a child process. It exposes a high level API to users, for things |
45 // like loading pages, adjusting the display and other browser functionality, | 48 // like loading pages, adjusting the display and other browser functionality, |
46 // which it translates into IPC messages sent over the IPC channel with the | 49 // which it translates into IPC messages sent over the IPC channel with the |
47 // RenderView. It responds to all IPC messages sent by that RenderView and | 50 // RenderView. It responds to all IPC messages sent by that RenderView and |
48 // cracks them, calling a delegate object back with higher level types where | 51 // cracks them, calling a delegate object back with higher level types where |
49 // possible. | 52 // possible. |
50 // | 53 // |
51 // The intent of this interface is to provide a view-agnostic communication | 54 // The intent of this interface is to provide a view-agnostic communication |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // Set bool for_cross_site_transition when this close is just for the current | 202 // Set bool for_cross_site_transition when this close is just for the current |
200 // RenderView in the case of a cross-site transition. False means we're | 203 // RenderView in the case of a cross-site transition. False means we're |
201 // closing the entire tab. | 204 // closing the entire tab. |
202 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; | 205 virtual void FirePageBeforeUnload(bool for_cross_site_transition) = 0; |
203 | 206 |
204 // Notifies the Listener that one or more files have been chosen by the user | 207 // Notifies the Listener that one or more files have been chosen by the user |
205 // from a file chooser dialog for the form. |permissions| are flags from the | 208 // from a file chooser dialog for the form. |permissions| are flags from the |
206 // base::PlatformFileFlags enum which specify which file permissions should | 209 // base::PlatformFileFlags enum which specify which file permissions should |
207 // be granted to the renderer. | 210 // be granted to the renderer. |
208 virtual void FilesSelectedInChooser( | 211 virtual void FilesSelectedInChooser( |
209 const std::vector<SelectedFileInfo>& files, | 212 const std::vector<ui::SelectedFileInfo>& files, |
210 int permissions) = 0; | 213 int permissions) = 0; |
211 | 214 |
212 virtual RenderViewHostDelegate* GetDelegate() const = 0; | 215 virtual RenderViewHostDelegate* GetDelegate() const = 0; |
213 | 216 |
214 // Returns a bitwise OR of bindings types that have been enabled for this | 217 // Returns a bitwise OR of bindings types that have been enabled for this |
215 // RenderView. See BindingsPolicy for details. | 218 // RenderView. See BindingsPolicy for details. |
216 virtual int GetEnabledBindings() const = 0; | 219 virtual int GetEnabledBindings() const = 0; |
217 | 220 |
218 virtual SessionStorageNamespace* GetSessionStorageNamespace() = 0; | 221 virtual SessionStorageNamespace* GetSessionStorageNamespace() = 0; |
219 | 222 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; | 266 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; |
264 | 267 |
265 // Passes a list of Webkit preferences to the renderer. | 268 // Passes a list of Webkit preferences to the renderer. |
266 virtual void UpdateWebkitPreferences( | 269 virtual void UpdateWebkitPreferences( |
267 const webkit_glue::WebPreferences& prefs) = 0; | 270 const webkit_glue::WebPreferences& prefs) = 0; |
268 }; | 271 }; |
269 | 272 |
270 } // namespace content | 273 } // namespace content |
271 | 274 |
272 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 275 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |