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" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, | 290 virtual void didAddMessageToConsole(const blink::WebConsoleMessage& message, |
291 const blink::WebString& source_name, | 291 const blink::WebString& source_name, |
292 unsigned source_line, | 292 unsigned source_line, |
293 const blink::WebString& stack_trace); | 293 const blink::WebString& stack_trace); |
294 virtual void loadURLExternally(blink::WebLocalFrame* frame, | 294 virtual void loadURLExternally(blink::WebLocalFrame* frame, |
295 const blink::WebURLRequest& request, | 295 const blink::WebURLRequest& request, |
296 blink::WebNavigationPolicy policy, | 296 blink::WebNavigationPolicy policy, |
297 const blink::WebString& suggested_name); | 297 const blink::WebString& suggested_name); |
298 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. | 298 // The WebDataSource::ExtraData* is assumed to be a DocumentState* subclass. |
299 virtual blink::WebNavigationPolicy decidePolicyForNavigation( | 299 virtual blink::WebNavigationPolicy decidePolicyForNavigation( |
300 blink::WebLocalFrame* frame, | 300 const NavigationPolicyInfo& info); |
301 blink::WebDataSource::ExtraData* extra_data, | |
302 const blink::WebURLRequest& request, | |
303 blink::WebNavigationType type, | |
304 blink::WebNavigationPolicy default_policy, | |
305 bool is_redirect); | |
306 virtual blink::WebHistoryItem historyItemForNewChildFrame( | 301 virtual blink::WebHistoryItem historyItemForNewChildFrame( |
307 blink::WebFrame* frame); | 302 blink::WebFrame* frame); |
308 virtual void willSendSubmitEvent(blink::WebLocalFrame* frame, | 303 virtual void willSendSubmitEvent(blink::WebLocalFrame* frame, |
309 const blink::WebFormElement& form); | 304 const blink::WebFormElement& form); |
310 virtual void willSubmitForm(blink::WebLocalFrame* frame, | 305 virtual void willSubmitForm(blink::WebLocalFrame* frame, |
311 const blink::WebFormElement& form); | 306 const blink::WebFormElement& form); |
312 virtual void didCreateDataSource(blink::WebLocalFrame* frame, | 307 virtual void didCreateDataSource(blink::WebLocalFrame* frame, |
313 blink::WebDataSource* datasource); | 308 blink::WebDataSource* datasource); |
314 virtual void didStartProvisionalLoad(blink::WebLocalFrame* frame); | 309 virtual void didStartProvisionalLoad(blink::WebLocalFrame* frame, |
| 310 bool is_transition_navigation); |
315 virtual void didReceiveServerRedirectForProvisionalLoad( | 311 virtual void didReceiveServerRedirectForProvisionalLoad( |
316 blink::WebLocalFrame* frame); | 312 blink::WebLocalFrame* frame); |
317 virtual void didFailProvisionalLoad( | 313 virtual void didFailProvisionalLoad( |
318 blink::WebLocalFrame* frame, | 314 blink::WebLocalFrame* frame, |
319 const blink::WebURLError& error); | 315 const blink::WebURLError& error); |
320 virtual void didCommitProvisionalLoad( | 316 virtual void didCommitProvisionalLoad( |
321 blink::WebLocalFrame* frame, | 317 blink::WebLocalFrame* frame, |
322 const blink::WebHistoryItem& item, | 318 const blink::WebHistoryItem& item, |
323 blink::WebHistoryCommitType commit_type); | 319 blink::WebHistoryCommitType commit_type); |
324 virtual void didClearWindowObject(blink::WebLocalFrame* frame); | 320 virtual void didClearWindowObject(blink::WebLocalFrame* frame); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 void OnTextSurroundingSelectionRequest(size_t max_length); | 496 void OnTextSurroundingSelectionRequest(size_t max_length); |
501 void OnAddStyleSheetByURL(const std::string& url); | 497 void OnAddStyleSheetByURL(const std::string& url); |
502 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 498 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
503 #if defined(OS_MACOSX) | 499 #if defined(OS_MACOSX) |
504 void OnCopyToFindPboard(); | 500 void OnCopyToFindPboard(); |
505 #endif | 501 #endif |
506 | 502 |
507 // Virtual since overridden by WebTestProxy for layout tests. | 503 // Virtual since overridden by WebTestProxy for layout tests. |
508 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( | 504 virtual blink::WebNavigationPolicy DecidePolicyForNavigation( |
509 RenderFrame* render_frame, | 505 RenderFrame* render_frame, |
510 blink::WebFrame* frame, | 506 const NavigationPolicyInfo& info); |
511 blink::WebDataSource::ExtraData* extraData, | |
512 const blink::WebURLRequest& request, | |
513 blink::WebNavigationType type, | |
514 blink::WebNavigationPolicy default_policy, | |
515 bool is_redirect); | |
516 void OpenURL(blink::WebFrame* frame, | 507 void OpenURL(blink::WebFrame* frame, |
517 const GURL& url, | 508 const GURL& url, |
518 const Referrer& referrer, | 509 const Referrer& referrer, |
519 blink::WebNavigationPolicy policy); | 510 blink::WebNavigationPolicy policy); |
520 | 511 |
521 // Update current main frame's encoding and send it to browser window. | 512 // Update current main frame's encoding and send it to browser window. |
522 // Since we want to let users see the right encoding info from menu | 513 // Since we want to let users see the right encoding info from menu |
523 // before finishing loading, we call the UpdateEncoding in | 514 // before finishing loading, we call the UpdateEncoding in |
524 // a) function:DidCommitLoadForFrame. When this function is called, | 515 // a) function:DidCommitLoadForFrame. When this function is called, |
525 // that means we have got first data. In here we try to get encoding | 516 // that means we have got first data. In here we try to get encoding |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 RendererAccessibility* renderer_accessibility_; | 687 RendererAccessibility* renderer_accessibility_; |
697 | 688 |
698 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 689 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
699 | 690 |
700 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 691 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
701 }; | 692 }; |
702 | 693 |
703 } // namespace content | 694 } // namespace content |
704 | 695 |
705 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 696 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |