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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 class JavaBridgeDispatcher; | 63 class JavaBridgeDispatcher; |
64 class LoadProgressTracker; | 64 class LoadProgressTracker; |
65 class MediaStreamImpl; | 65 class MediaStreamImpl; |
66 class NotificationProvider; | 66 class NotificationProvider; |
67 class PepperDeviceTest; | 67 class PepperDeviceTest; |
68 struct PP_NetAddress_Private; | 68 struct PP_NetAddress_Private; |
69 class RenderWidgetFullscreenPepper; | 69 class RenderWidgetFullscreenPepper; |
70 class RendererAccessibility; | 70 class RendererAccessibility; |
71 class SkBitmap; | 71 class SkBitmap; |
72 class SpeechInputDispatcher; | 72 class SpeechInputDispatcher; |
73 struct ViewHostMsg_RunFileChooser_Params; | |
74 struct ViewMsg_Navigate_Params; | 73 struct ViewMsg_Navigate_Params; |
75 struct ViewMsg_StopFinding_Params; | 74 struct ViewMsg_StopFinding_Params; |
76 struct ViewMsg_SwapOut_Params; | 75 struct ViewMsg_SwapOut_Params; |
77 struct WebDropData; | 76 struct WebDropData; |
78 class WebPluginDelegateProxy; | 77 class WebPluginDelegateProxy; |
79 class WebUIBindings; | 78 class WebUIBindings; |
80 | 79 |
81 namespace content { | 80 namespace content { |
82 class DocumentState; | 81 class DocumentState; |
83 class P2PSocketDispatcher; | 82 class P2PSocketDispatcher; |
84 class RenderViewObserver; | 83 class RenderViewObserver; |
85 class RenderViewTest; | 84 class RenderViewTest; |
| 85 struct FileChooserParams; |
86 } // namespace content | 86 } // namespace content |
87 | 87 |
88 namespace gfx { | 88 namespace gfx { |
89 class Point; | 89 class Point; |
90 class Rect; | 90 class Rect; |
91 } // namespace gfx | 91 } // namespace gfx |
92 | 92 |
93 namespace webkit { | 93 namespace webkit { |
94 | 94 |
95 namespace ppapi { | 95 namespace ppapi { |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // Functions to add and remove observers for this object. | 204 // Functions to add and remove observers for this object. |
205 void AddObserver(content::RenderViewObserver* observer); | 205 void AddObserver(content::RenderViewObserver* observer); |
206 void RemoveObserver(content::RenderViewObserver* observer); | 206 void RemoveObserver(content::RenderViewObserver* observer); |
207 | 207 |
208 // Adds the given file chooser request to the file_chooser_completion_ queue | 208 // Adds the given file chooser request to the file_chooser_completion_ queue |
209 // (see that var for more) and requests the chooser be displayed if there are | 209 // (see that var for more) and requests the chooser be displayed if there are |
210 // no other waiting items in the queue. | 210 // no other waiting items in the queue. |
211 // | 211 // |
212 // Returns true if the chooser was successfully scheduled. False means we | 212 // Returns true if the chooser was successfully scheduled. False means we |
213 // didn't schedule anything. | 213 // didn't schedule anything. |
214 bool ScheduleFileChooser(const ViewHostMsg_RunFileChooser_Params& params, | 214 bool ScheduleFileChooser(const content::FileChooserParams& params, |
215 WebKit::WebFileChooserCompletion* completion); | 215 WebKit::WebFileChooserCompletion* completion); |
216 | 216 |
217 // Sets whether the renderer should report load progress to the browser. | 217 // Sets whether the renderer should report load progress to the browser. |
218 void SetReportLoadProgressEnabled(bool enabled); | 218 void SetReportLoadProgressEnabled(bool enabled); |
219 | 219 |
220 void LoadNavigationErrorPage( | 220 void LoadNavigationErrorPage( |
221 WebKit::WebFrame* frame, | 221 WebKit::WebFrame* frame, |
222 const WebKit::WebURLRequest& failed_request, | 222 const WebKit::WebURLRequest& failed_request, |
223 const WebKit::WebURLError& error, | 223 const WebKit::WebURLError& error, |
224 const std::string& html, | 224 const std::string& html, |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 // bunch of stuff, you should probably create a helper class and put your | 1218 // bunch of stuff, you should probably create a helper class and put your |
1219 // data and methods on that to avoid bloating RenderView more. You can | 1219 // data and methods on that to avoid bloating RenderView more. You can |
1220 // use the Observer interface to filter IPC messages and receive frame change | 1220 // use the Observer interface to filter IPC messages and receive frame change |
1221 // notifications. | 1221 // notifications. |
1222 // --------------------------------------------------------------------------- | 1222 // --------------------------------------------------------------------------- |
1223 | 1223 |
1224 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1224 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1225 }; | 1225 }; |
1226 | 1226 |
1227 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1227 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |