OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/renderer_host/render_view_host.h" | 5 #include "chrome/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 net::LoadState load_state, | 669 net::LoadState load_state, |
670 uint64 upload_position, | 670 uint64 upload_position, |
671 uint64 upload_size) { | 671 uint64 upload_size) { |
672 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); | 672 delegate_->LoadStateChanged(url, load_state, upload_position, upload_size); |
673 } | 673 } |
674 | 674 |
675 bool RenderViewHost::SuddenTerminationAllowed() const { | 675 bool RenderViewHost::SuddenTerminationAllowed() const { |
676 return sudden_termination_allowed_ || process()->sudden_termination_allowed(); | 676 return sudden_termination_allowed_ || process()->sudden_termination_allowed(); |
677 } | 677 } |
678 | 678 |
679 void RenderViewHost::RequestAccessibilityTree() { | |
680 Send(new ViewMsg_GetAccessibilityTree(routing_id())); | |
681 } | |
682 | |
683 /////////////////////////////////////////////////////////////////////////////// | 679 /////////////////////////////////////////////////////////////////////////////// |
684 // RenderViewHost, IPC message handlers: | 680 // RenderViewHost, IPC message handlers: |
685 | 681 |
686 void RenderViewHost::OnMessageReceived(const IPC::Message& msg) { | 682 void RenderViewHost::OnMessageReceived(const IPC::Message& msg) { |
687 #if defined(OS_WIN) | 683 #if defined(OS_WIN) |
688 // On Windows there's a potential deadlock with sync messsages going in | 684 // On Windows there's a potential deadlock with sync messsages going in |
689 // a circle from browser -> plugin -> renderer -> browser. | 685 // a circle from browser -> plugin -> renderer -> browser. |
690 // On Linux we can avoid this by avoiding sync messages from browser->plugin. | 686 // On Linux we can avoid this by avoiding sync messages from browser->plugin. |
691 // On Mac we avoid this by not supporting windowed plugins. | 687 // On Mac we avoid this by not supporting windowed plugins. |
692 if (msg.is_sync() && !msg.is_caller_pumping_messages()) { | 688 if (msg.is_sync() && !msg.is_caller_pumping_messages()) { |
(...skipping 1188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 integration_delegate->OnPageTranslated(page_id, original_lang, | 1877 integration_delegate->OnPageTranslated(page_id, original_lang, |
1882 translated_lang, error_type); | 1878 translated_lang, error_type); |
1883 } | 1879 } |
1884 | 1880 |
1885 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { | 1881 void RenderViewHost::OnContentBlocked(ContentSettingsType type) { |
1886 RenderViewHostDelegate::Resource* resource_delegate = | 1882 RenderViewHostDelegate::Resource* resource_delegate = |
1887 delegate_->GetResourceDelegate(); | 1883 delegate_->GetResourceDelegate(); |
1888 if (resource_delegate) | 1884 if (resource_delegate) |
1889 resource_delegate->OnContentBlocked(type); | 1885 resource_delegate->OnContentBlocked(type); |
1890 } | 1886 } |
OLD | NEW |