OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/id_map.h" | 13 #include "base/id_map.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "base/process/process_handle.h" | 16 #include "base/process/process_handle.h" |
17 #include "content/public/common/referrer.h" | 17 #include "content/public/common/referrer.h" |
18 #include "content/public/renderer/render_frame.h" | 18 #include "content/public/renderer/render_frame.h" |
19 #include "content/renderer/renderer_webcookiejar_impl.h" | 19 #include "content/renderer/renderer_webcookiejar_impl.h" |
20 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
21 #include "third_party/WebKit/public/web/WebDataSource.h" | 21 #include "third_party/WebKit/public/web/WebDataSource.h" |
22 #include "third_party/WebKit/public/web/WebFrameClient.h" | 22 #include "third_party/WebKit/public/web/WebFrameClient.h" |
23 #include "third_party/WebKit/public/web/WebHistoryCommitType.h" | |
23 #include "ui/gfx/range/range.h" | 24 #include "ui/gfx/range/range.h" |
24 | 25 |
25 class TransportDIB; | 26 class TransportDIB; |
26 struct FrameMsg_BuffersSwapped_Params; | 27 struct FrameMsg_BuffersSwapped_Params; |
27 struct FrameMsg_CompositorFrameSwapped_Params; | 28 struct FrameMsg_CompositorFrameSwapped_Params; |
28 struct FrameMsg_Navigate_Params; | 29 struct FrameMsg_Navigate_Params; |
29 | 30 |
30 namespace blink { | 31 namespace blink { |
31 class WebInputEvent; | 32 class WebInputEvent; |
32 class WebMouseEvent; | 33 class WebMouseEvent; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
229 blink::WebNavigationPolicy policy, | 230 blink::WebNavigationPolicy policy, |
230 const blink::WebString& suggested_name); | 231 const blink::WebString& suggested_name); |
231 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. | 232 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. |
232 virtual blink::WebNavigationPolicy decidePolicyForNavigation( | 233 virtual blink::WebNavigationPolicy decidePolicyForNavigation( |
233 blink::WebFrame* frame, | 234 blink::WebFrame* frame, |
234 blink::WebDataSource::ExtraData* extra_data, | 235 blink::WebDataSource::ExtraData* extra_data, |
235 const blink::WebURLRequest& request, | 236 const blink::WebURLRequest& request, |
236 blink::WebNavigationType type, | 237 blink::WebNavigationType type, |
237 blink::WebNavigationPolicy default_policy, | 238 blink::WebNavigationPolicy default_policy, |
238 bool is_redirect); | 239 bool is_redirect); |
240 virtual blink::WebHistoryItem historyItemForNewChildFrame( | |
241 blink::WebFrame* frame); | |
239 virtual void willSendSubmitEvent(blink::WebFrame* frame, | 242 virtual void willSendSubmitEvent(blink::WebFrame* frame, |
240 const blink::WebFormElement& form); | 243 const blink::WebFormElement& form); |
241 virtual void willSubmitForm(blink::WebFrame* frame, | 244 virtual void willSubmitForm(blink::WebFrame* frame, |
242 const blink::WebFormElement& form); | 245 const blink::WebFormElement& form); |
243 virtual void didCreateDataSource(blink::WebFrame* frame, | 246 virtual void didCreateDataSource(blink::WebFrame* frame, |
244 blink::WebDataSource* datasource); | 247 blink::WebDataSource* datasource); |
245 virtual void didStartProvisionalLoad(blink::WebFrame* frame); | 248 virtual void didStartProvisionalLoad(blink::WebFrame* frame); |
246 virtual void didReceiveServerRedirectForProvisionalLoad( | 249 virtual void didReceiveServerRedirectForProvisionalLoad( |
247 blink::WebFrame* frame); | 250 blink::WebFrame* frame); |
248 virtual void didFailProvisionalLoad( | 251 virtual void didFailProvisionalLoad( |
249 blink::WebFrame* frame, | 252 blink::WebFrame* frame, |
250 const blink::WebURLError& error); | 253 const blink::WebURLError& error); |
251 virtual void didCommitProvisionalLoad(blink::WebFrame* frame, | 254 virtual void didCommitProvisionalLoad(blink::WebFrame* frame, |
Charlie Reis
2014/04/02 18:00:13
nit: This goes on the next line.
| |
255 const blink::WebHistoryItem& item, | |
256 blink::WebHistoryCommitType commit_type); | |
257 // DEPRECATED | |
258 virtual void didCommitProvisionalLoad(blink::WebFrame* frame, | |
252 bool is_new_navigation); | 259 bool is_new_navigation); |
253 virtual void didClearWindowObject(blink::WebFrame* frame, int world_id); | 260 virtual void didClearWindowObject(blink::WebFrame* frame, int world_id); |
254 virtual void didCreateDocumentElement(blink::WebFrame* frame); | 261 virtual void didCreateDocumentElement(blink::WebFrame* frame); |
255 virtual void didReceiveTitle(blink::WebFrame* frame, | 262 virtual void didReceiveTitle(blink::WebFrame* frame, |
256 const blink::WebString& title, | 263 const blink::WebString& title, |
257 blink::WebTextDirection direction); | 264 blink::WebTextDirection direction); |
258 virtual void didChangeIcon(blink::WebFrame* frame, | 265 virtual void didChangeIcon(blink::WebFrame* frame, |
259 blink::WebIconURL::Type icon_type); | 266 blink::WebIconURL::Type icon_type); |
260 virtual void didFinishDocumentLoad(blink::WebFrame* frame); | 267 virtual void didFinishDocumentLoad(blink::WebFrame* frame); |
261 virtual void didHandleOnloadEvents(blink::WebFrame* frame); | 268 virtual void didHandleOnloadEvents(blink::WebFrame* frame); |
262 virtual void didFailLoad(blink::WebFrame* frame, | 269 virtual void didFailLoad(blink::WebFrame* frame, |
263 const blink::WebURLError& error); | 270 const blink::WebURLError& error); |
264 virtual void didFinishLoad(blink::WebFrame* frame); | 271 virtual void didFinishLoad(blink::WebFrame* frame); |
265 virtual void didNavigateWithinPage(blink::WebFrame* frame, | 272 virtual void didNavigateWithinPage(blink::WebFrame* frame, |
273 const blink::WebHistoryItem& item, | |
274 blink::WebHistoryCommitType commit_type); | |
275 // DEPRECATED | |
276 virtual void didNavigateWithinPage(blink::WebFrame* frame, | |
266 bool is_new_navigation); | 277 bool is_new_navigation); |
267 virtual void didUpdateCurrentHistoryItem(blink::WebFrame* frame); | 278 virtual void didUpdateCurrentHistoryItem(blink::WebFrame* frame); |
268 virtual void didChangeSelection(bool is_empty_selection); | 279 virtual void didChangeSelection(bool is_empty_selection); |
269 virtual void showContextMenu(const blink::WebContextMenuData& data); | 280 virtual void showContextMenu(const blink::WebContextMenuData& data); |
270 virtual void clearContextMenu(); | 281 virtual void clearContextMenu(); |
271 virtual void willRequestAfterPreconnect(blink::WebFrame* frame, | 282 virtual void willRequestAfterPreconnect(blink::WebFrame* frame, |
272 blink::WebURLRequest& request); | 283 blink::WebURLRequest& request); |
273 virtual void willSendRequest( | 284 virtual void willSendRequest( |
274 blink::WebFrame* frame, | 285 blink::WebFrame* frame, |
275 unsigned identifier, | 286 unsigned identifier, |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
483 // Used to inform didChangeSelection() when it is called in the context | 494 // Used to inform didChangeSelection() when it is called in the context |
484 // of handling a InputMsg_SelectRange IPC. | 495 // of handling a InputMsg_SelectRange IPC. |
485 bool handling_select_range_; | 496 bool handling_select_range_; |
486 | 497 |
487 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 498 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
488 }; | 499 }; |
489 | 500 |
490 } // namespace content | 501 } // namespace content |
491 | 502 |
492 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 503 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |