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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 const std::string& error) { | 1900 const std::string& error) { |
1901 Send(new ViewMsg_ExtensionResponse(routing_id(), request_id, success, | 1901 Send(new ViewMsg_ExtensionResponse(routing_id(), request_id, success, |
1902 response, error)); | 1902 response, error)); |
1903 } | 1903 } |
1904 | 1904 |
1905 void RenderViewHost::BlockExtensionRequest(int request_id) { | 1905 void RenderViewHost::BlockExtensionRequest(int request_id) { |
1906 SendExtensionResponse(request_id, false, "", | 1906 SendExtensionResponse(request_id, false, "", |
1907 "Access to extension API denied."); | 1907 "Access to extension API denied."); |
1908 } | 1908 } |
1909 | 1909 |
1910 void RenderViewHost::ViewTypeChanged(ViewType::Type type) { | |
1911 Send(new ViewMsg_NotifyRenderViewType(routing_id(), type)); | |
1912 } | |
1913 | |
1914 void RenderViewHost::UpdateBrowserWindowId(int window_id) { | 1910 void RenderViewHost::UpdateBrowserWindowId(int window_id) { |
1915 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); | 1911 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); |
1916 } | 1912 } |
1917 | 1913 |
1918 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { | 1914 void RenderViewHost::PerformCustomContextMenuAction(unsigned action) { |
1919 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); | 1915 Send(new ViewMsg_CustomContextMenuAction(routing_id(), action)); |
1920 } | 1916 } |
1921 | 1917 |
1922 void RenderViewHost::TranslatePage(int page_id, | 1918 void RenderViewHost::TranslatePage(int page_id, |
1923 const std::string& translate_script, | 1919 const std::string& translate_script, |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2020 RenderViewHostDelegate::ContentSettings* content_settings_delegate = | 2016 RenderViewHostDelegate::ContentSettings* content_settings_delegate = |
2021 delegate_->GetContentSettingsDelegate(); | 2017 delegate_->GetContentSettingsDelegate(); |
2022 if (content_settings_delegate) | 2018 if (content_settings_delegate) |
2023 content_settings_delegate->OnWebDatabaseAccessed( | 2019 content_settings_delegate->OnWebDatabaseAccessed( |
2024 url, name, display_name, estimated_size, blocked_by_policy); | 2020 url, name, display_name, estimated_size, blocked_by_policy); |
2025 } | 2021 } |
2026 | 2022 |
2027 void RenderViewHost::OnSetDisplayingPDFContent() { | 2023 void RenderViewHost::OnSetDisplayingPDFContent() { |
2028 delegate_->SetDisplayingPDFContent(); | 2024 delegate_->SetDisplayingPDFContent(); |
2029 } | 2025 } |
OLD | NEW |