| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 #include "content/child/appcache_dispatcher.h" | 32 #include "content/child/appcache_dispatcher.h" |
| 33 #include "content/child/child_thread.h" | 33 #include "content/child/child_thread.h" |
| 34 #include "content/child/fileapi/file_system_dispatcher.h" | 34 #include "content/child/fileapi/file_system_dispatcher.h" |
| 35 #include "content/child/fileapi/webfilesystem_callback_adapters.h" | 35 #include "content/child/fileapi/webfilesystem_callback_adapters.h" |
| 36 #include "content/child/npapi/webplugin_delegate_impl.h" | 36 #include "content/child/npapi/webplugin_delegate_impl.h" |
| 37 #include "content/child/quota_dispatcher.h" | 37 #include "content/child/quota_dispatcher.h" |
| 38 #include "content/child/request_extra_data.h" | 38 #include "content/child/request_extra_data.h" |
| 39 #include "content/child/webmessageportchannel_impl.h" | 39 #include "content/child/webmessageportchannel_impl.h" |
| 40 #include "content/common/clipboard_messages.h" | 40 #include "content/common/clipboard_messages.h" |
| 41 #include "content/common/database_messages.h" | 41 #include "content/common/database_messages.h" |
| 42 #include "content/common/dom_storage/dom_storage_types.h" |
| 42 #include "content/common/drag_messages.h" | 43 #include "content/common/drag_messages.h" |
| 43 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 44 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
| 44 #include "content/common/input_messages.h" | 45 #include "content/common/input_messages.h" |
| 45 #include "content/common/java_bridge_messages.h" | 46 #include "content/common/java_bridge_messages.h" |
| 46 #include "content/common/pepper_messages.h" | 47 #include "content/common/pepper_messages.h" |
| 47 #include "content/common/socket_stream_handle_data.h" | 48 #include "content/common/socket_stream_handle_data.h" |
| 48 #include "content/common/ssl_status_serialization.h" | 49 #include "content/common/ssl_status_serialization.h" |
| 49 #include "content/common/view_messages.h" | 50 #include "content/common/view_messages.h" |
| 50 #include "content/public/common/bindings_policy.h" | 51 #include "content/public/common/bindings_policy.h" |
| 51 #include "content/public/common/content_client.h" | 52 #include "content/public/common/content_client.h" |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 #include "third_party/WebKit/public/web/default/WebRenderTheme.h" | 202 #include "third_party/WebKit/public/web/default/WebRenderTheme.h" |
| 202 #include "ui/base/ui_base_switches_util.h" | 203 #include "ui/base/ui_base_switches_util.h" |
| 203 #include "ui/gfx/native_widget_types.h" | 204 #include "ui/gfx/native_widget_types.h" |
| 204 #include "ui/gfx/point.h" | 205 #include "ui/gfx/point.h" |
| 205 #include "ui/gfx/rect.h" | 206 #include "ui/gfx/rect.h" |
| 206 #include "ui/gfx/rect_conversions.h" | 207 #include "ui/gfx/rect_conversions.h" |
| 207 #include "ui/gfx/size_conversions.h" | 208 #include "ui/gfx/size_conversions.h" |
| 208 #include "ui/shell_dialogs/selected_file_info.h" | 209 #include "ui/shell_dialogs/selected_file_info.h" |
| 209 #include "v8/include/v8.h" | 210 #include "v8/include/v8.h" |
| 210 #include "webkit/child/weburlresponse_extradata_impl.h" | 211 #include "webkit/child/weburlresponse_extradata_impl.h" |
| 211 #include "webkit/common/dom_storage/dom_storage_types.h" | |
| 212 #include "webkit/renderer/appcache/web_application_cache_host_impl.h" | 212 #include "webkit/renderer/appcache/web_application_cache_host_impl.h" |
| 213 #include "webkit/renderer/webpreferences_renderer.h" | 213 #include "webkit/renderer/webpreferences_renderer.h" |
| 214 | 214 |
| 215 #if defined(OS_ANDROID) | 215 #if defined(OS_ANDROID) |
| 216 #include <cpu-features.h> | 216 #include <cpu-features.h> |
| 217 | 217 |
| 218 #include "content/common/android/device_telephony_info.h" | 218 #include "content/common/android/device_telephony_info.h" |
| 219 #include "content/common/gpu/client/context_provider_command_buffer.h" | 219 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 220 #include "content/renderer/android/address_detector.h" | 220 #include "content/renderer/android/address_detector.h" |
| 221 #include "content/renderer/android/content_detector.h" | 221 #include "content/renderer/android/content_detector.h" |
| (...skipping 2038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2260 routing_id_, plugin, active_url, screen_info_); | 2260 routing_id_, plugin, active_url, screen_info_); |
| 2261 widget->show(WebKit::WebNavigationPolicyIgnore); | 2261 widget->show(WebKit::WebNavigationPolicyIgnore); |
| 2262 return widget; | 2262 return widget; |
| 2263 #else // defined(ENABLE_PLUGINS) | 2263 #else // defined(ENABLE_PLUGINS) |
| 2264 NOTREACHED() << "CreatePepperFullscreenContainer: plugins disabled"; | 2264 NOTREACHED() << "CreatePepperFullscreenContainer: plugins disabled"; |
| 2265 return NULL; | 2265 return NULL; |
| 2266 #endif | 2266 #endif |
| 2267 } | 2267 } |
| 2268 | 2268 |
| 2269 WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace() { | 2269 WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace() { |
| 2270 CHECK(session_storage_namespace_id_ != | 2270 CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); |
| 2271 dom_storage::kInvalidSessionStorageNamespaceId); | |
| 2272 return new WebStorageNamespaceImpl(session_storage_namespace_id_); | 2271 return new WebStorageNamespaceImpl(session_storage_namespace_id_); |
| 2273 } | 2272 } |
| 2274 | 2273 |
| 2275 void RenderViewImpl::didAddMessageToConsole( | 2274 void RenderViewImpl::didAddMessageToConsole( |
| 2276 const WebConsoleMessage& message, const WebString& source_name, | 2275 const WebConsoleMessage& message, const WebString& source_name, |
| 2277 unsigned source_line) { | 2276 unsigned source_line) { |
| 2278 static const int kMaximumInflightConsoleMessages = 10; | 2277 static const int kMaximumInflightConsoleMessages = 10; |
| 2279 logging::LogSeverity log_severity = logging::LOG_VERBOSE; | 2278 logging::LogSeverity log_severity = logging::LOG_VERBOSE; |
| 2280 switch (message.level) { | 2279 switch (message.level) { |
| 2281 case WebConsoleMessage::LevelDebug: | 2280 case WebConsoleMessage::LevelDebug: |
| (...skipping 4081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6363 WebURL url = icon_urls[i].iconURL(); | 6362 WebURL url = icon_urls[i].iconURL(); |
| 6364 if (!url.isEmpty()) | 6363 if (!url.isEmpty()) |
| 6365 urls.push_back(FaviconURL(url, | 6364 urls.push_back(FaviconURL(url, |
| 6366 ToFaviconType(icon_urls[i].iconType()))); | 6365 ToFaviconType(icon_urls[i].iconType()))); |
| 6367 } | 6366 } |
| 6368 SendUpdateFaviconURL(urls); | 6367 SendUpdateFaviconURL(urls); |
| 6369 } | 6368 } |
| 6370 | 6369 |
| 6371 | 6370 |
| 6372 } // namespace content | 6371 } // namespace content |
| OLD | NEW |