Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10162015: Pull domstorage specifics out of RenderThreadImpl into DomStorageDispatcher (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "content/public/common/selected_file_info.h" 50 #include "content/public/common/selected_file_info.h"
51 #include "content/public/common/url_constants.h" 51 #include "content/public/common/url_constants.h"
52 #include "content/public/renderer/content_renderer_client.h" 52 #include "content/public/renderer/content_renderer_client.h"
53 #include "content/public/renderer/document_state.h" 53 #include "content/public/renderer/document_state.h"
54 #include "content/public/renderer/navigation_state.h" 54 #include "content/public/renderer/navigation_state.h"
55 #include "content/public/renderer/render_view_observer.h" 55 #include "content/public/renderer/render_view_observer.h"
56 #include "content/public/renderer/render_view_visitor.h" 56 #include "content/public/renderer/render_view_visitor.h"
57 #include "content/renderer/device_orientation_dispatcher.h" 57 #include "content/renderer/device_orientation_dispatcher.h"
58 #include "content/renderer/devtools_agent.h" 58 #include "content/renderer/devtools_agent.h"
59 #include "content/renderer/dom_automation_controller.h" 59 #include "content/renderer/dom_automation_controller.h"
60 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
60 #include "content/renderer/external_popup_menu.h" 61 #include "content/renderer/external_popup_menu.h"
61 #include "content/renderer/geolocation_dispatcher.h" 62 #include "content/renderer/geolocation_dispatcher.h"
62 #include "content/renderer/gpu/compositor_thread.h" 63 #include "content/renderer/gpu/compositor_thread.h"
63 #include "content/renderer/idle_user_detector.h" 64 #include "content/renderer/idle_user_detector.h"
64 #include "content/renderer/input_tag_speech_dispatcher.h" 65 #include "content/renderer/input_tag_speech_dispatcher.h"
65 #include "content/renderer/java/java_bridge_dispatcher.h" 66 #include "content/renderer/java/java_bridge_dispatcher.h"
66 #include "content/renderer/load_progress_tracker.h" 67 #include "content/renderer/load_progress_tracker.h"
67 #include "content/renderer/media/audio_message_filter.h" 68 #include "content/renderer/media/audio_message_filter.h"
68 #include "content/renderer/media/media_stream_dependency_factory.h" 69 #include "content/renderer/media/media_stream_dependency_factory.h"
69 #include "content/renderer/media/media_stream_dispatcher.h" 70 #include "content/renderer/media/media_stream_dispatcher.h"
70 #include "content/renderer/media/media_stream_impl.h" 71 #include "content/renderer/media/media_stream_impl.h"
71 #include "content/renderer/media/render_audiosourceprovider.h" 72 #include "content/renderer/media/render_audiosourceprovider.h"
72 #include "content/renderer/media/render_media_log.h" 73 #include "content/renderer/media/render_media_log.h"
73 #include "content/renderer/media/renderer_gpu_video_decoder_factories.h" 74 #include "content/renderer/media/renderer_gpu_video_decoder_factories.h"
74 #include "content/renderer/mhtml_generator.h" 75 #include "content/renderer/mhtml_generator.h"
75 #include "content/renderer/mouse_lock_dispatcher.h" 76 #include "content/renderer/mouse_lock_dispatcher.h"
76 #include "content/renderer/notification_provider.h" 77 #include "content/renderer/notification_provider.h"
77 #include "content/renderer/p2p/socket_dispatcher.h" 78 #include "content/renderer/p2p/socket_dispatcher.h"
78 #include "content/renderer/plugin_channel_host.h" 79 #include "content/renderer/plugin_channel_host.h"
79 #include "content/renderer/browser_plugin/browser_plugin_constants.h" 80 #include "content/renderer/browser_plugin/browser_plugin_constants.h"
80 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h" 81 #include "content/renderer/browser_plugin/browser_plugin_placeholder.h"
81 #include "content/renderer/render_process.h" 82 #include "content/renderer/render_process.h"
82 #include "content/renderer/render_thread_impl.h" 83 #include "content/renderer/render_thread_impl.h"
83 #include "content/renderer/render_widget_fullscreen_pepper.h" 84 #include "content/renderer/render_widget_fullscreen_pepper.h"
84 #include "content/renderer/renderer_accessibility.h" 85 #include "content/renderer/renderer_accessibility.h"
85 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 86 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
86 #include "content/renderer/renderer_webcolorchooser_impl.h" 87 #include "content/renderer/renderer_webcolorchooser_impl.h"
87 #include "content/renderer/renderer_webstoragenamespace_impl.h"
88 #include "content/renderer/text_input_client_observer.h" 88 #include "content/renderer/text_input_client_observer.h"
89 #include "content/renderer/v8_value_converter_impl.h" 89 #include "content/renderer/v8_value_converter_impl.h"
90 #include "content/renderer/web_intents_host.h" 90 #include "content/renderer/web_intents_host.h"
91 #include "content/renderer/web_ui_bindings.h" 91 #include "content/renderer/web_ui_bindings.h"
92 #include "content/renderer/webplugin_delegate_proxy.h" 92 #include "content/renderer/webplugin_delegate_proxy.h"
93 #include "content/renderer/websharedworker_proxy.h" 93 #include "content/renderer/websharedworker_proxy.h"
94 #include "media/base/filter_collection.h" 94 #include "media/base/filter_collection.h"
95 #include "media/base/media_switches.h" 95 #include "media/base/media_switches.h"
96 #include "media/base/message_loop_factory.h" 96 #include "media/base/message_loop_factory.h"
97 #include "media/filters/audio_renderer_impl.h" 97 #include "media/filters/audio_renderer_impl.h"
(...skipping 24 matching lines...) Expand all
122 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h" 122 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginAction.h"
123 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" 123 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h"
124 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h" 124 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginDocument.h"
125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h" 125 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginParams.h"
126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h" 126 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRange.h"
127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" 127 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h"
128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSearchableFormData .h" 128 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSearchableFormData .h"
129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h" 129 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" 130 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h"
131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h" 131 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h"
132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageNamespace.h "
133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallba cks.h" 132 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageQuotaCallba cks.h"
134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserMediaClient.h" 133 #include "third_party/WebKit/Source/WebKit/chromium/public/WebUserMediaClient.h"
135 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 134 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
136 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h" 135 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWindowFeatures.h"
137 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h " 136 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h "
138 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData. h" 137 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData. h"
139 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 138 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
140 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebImage.h" 139 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebImage.h"
141 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ction00Handler.h" 140 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ction00Handler.h"
142 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ction00HandlerClient.h" 141 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ction00HandlerClient.h"
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create( 1591 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create(
1593 routing_id_, plugin, active_url); 1592 routing_id_, plugin, active_url);
1594 widget->show(WebKit::WebNavigationPolicyIgnore); 1593 widget->show(WebKit::WebNavigationPolicyIgnore);
1595 return widget; 1594 return widget;
1596 } 1595 }
1597 1596
1598 WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace( 1597 WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace(
1599 unsigned quota) { 1598 unsigned quota) {
1600 CHECK(session_storage_namespace_id_ != 1599 CHECK(session_storage_namespace_id_ !=
1601 dom_storage::kInvalidSessionStorageNamespaceId); 1600 dom_storage::kInvalidSessionStorageNamespaceId);
1602 return new RendererWebStorageNamespaceImpl(session_storage_namespace_id_); 1601 return new WebStorageNamespaceImpl(session_storage_namespace_id_);
1603 } 1602 }
1604 1603
1605 WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D( 1604 WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D(
1606 const WebGraphicsContext3D::Attributes& attributes) { 1605 const WebGraphicsContext3D::Attributes& attributes) {
1607 if (!webview()) 1606 if (!webview())
1608 return NULL; 1607 return NULL;
1609 // The WebGraphicsContext3DInProcessImpl code path is used for 1608 // The WebGraphicsContext3DInProcessImpl code path is used for
1610 // layout tests (though not through this code) as well as for 1609 // layout tests (though not through this code) as well as for
1611 // debugging and bringing up new ports. 1610 // debugging and bringing up new ports.
1612 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessWebGL)) { 1611 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kInProcessWebGL)) {
(...skipping 3694 matching lines...) Expand 10 before | Expand all | Expand 10 after
5307 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5306 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5308 return !!RenderThreadImpl::current()->compositor_thread(); 5307 return !!RenderThreadImpl::current()->compositor_thread();
5309 } 5308 }
5310 5309
5311 void RenderViewImpl::OnJavaBridgeInit() { 5310 void RenderViewImpl::OnJavaBridgeInit() {
5312 DCHECK(!java_bridge_dispatcher_.get()); 5311 DCHECK(!java_bridge_dispatcher_.get());
5313 #if defined(ENABLE_JAVA_BRIDGE) 5312 #if defined(ENABLE_JAVA_BRIDGE)
5314 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5313 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5315 #endif 5314 #endif
5316 } 5315 }
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698