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

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

Issue 10005049: DomStorage house cleaning (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h" 149 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques t.h"
150 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon se.h" 150 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLRespon se.h"
151 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" 151 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h"
152 #include "third_party/skia/include/core/SkBitmap.h" 152 #include "third_party/skia/include/core/SkBitmap.h"
153 #include "ui/base/javascript_message_type.h" 153 #include "ui/base/javascript_message_type.h"
154 #include "ui/gfx/native_widget_types.h" 154 #include "ui/gfx/native_widget_types.h"
155 #include "ui/gfx/point.h" 155 #include "ui/gfx/point.h"
156 #include "ui/gfx/rect.h" 156 #include "ui/gfx/rect.h"
157 #include "v8/include/v8.h" 157 #include "v8/include/v8.h"
158 #include "webkit/appcache/web_application_cache_host_impl.h" 158 #include "webkit/appcache/web_application_cache_host_impl.h"
159 #include "webkit/dom_storage/dom_storage_types.h"
159 #include "webkit/forms/form_data.h" 160 #include "webkit/forms/form_data.h"
160 #include "webkit/forms/form_field.h" 161 #include "webkit/forms/form_field.h"
161 #include "webkit/forms/password_form_dom_manager.h" 162 #include "webkit/forms/password_form_dom_manager.h"
162 #include "webkit/glue/alt_error_page_resource_fetcher.h" 163 #include "webkit/glue/alt_error_page_resource_fetcher.h"
163 #include "webkit/glue/dom_operations.h" 164 #include "webkit/glue/dom_operations.h"
164 #include "webkit/glue/glue_serialize.h" 165 #include "webkit/glue/glue_serialize.h"
165 #include "webkit/glue/webdropdata.h" 166 #include "webkit/glue/webdropdata.h"
166 #include "webkit/glue/webkit_constants.h" 167 #include "webkit/glue/webkit_constants.h"
167 #include "webkit/glue/webkit_glue.h" 168 #include "webkit/glue/webkit_glue.h"
168 #include "webkit/glue/weburlloader_impl.h" 169 #include "webkit/glue/weburlloader_impl.h"
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 active_url = GURL(webview()->mainFrame()->document().url()); 1550 active_url = GURL(webview()->mainFrame()->document().url());
1550 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create( 1551 RenderWidgetFullscreenPepper* widget = RenderWidgetFullscreenPepper::Create(
1551 routing_id_, plugin, active_url); 1552 routing_id_, plugin, active_url);
1552 widget->show(WebKit::WebNavigationPolicyIgnore); 1553 widget->show(WebKit::WebNavigationPolicyIgnore);
1553 return widget; 1554 return widget;
1554 } 1555 }
1555 1556
1556 WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace( 1557 WebStorageNamespace* RenderViewImpl::createSessionStorageNamespace(
1557 unsigned quota) { 1558 unsigned quota) {
1558 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND 1559 #ifdef ENABLE_NEW_DOM_STORAGE_BACKEND
1559 CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); 1560 CHECK(session_storage_namespace_id_ !=
1560 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION, 1561 dom_storage::kInvalidSessionStorageNamespaceId);
1561 session_storage_namespace_id_); 1562 return new RendererWebStorageNamespaceImpl(session_storage_namespace_id_);
1562 #else 1563 #else
1563 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess)) 1564 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess))
1564 return WebStorageNamespace::createSessionStorageNamespace(quota); 1565 return WebStorageNamespace::createSessionStorageNamespace(quota);
1565 CHECK(session_storage_namespace_id_ != kInvalidSessionStorageNamespaceId); 1566 CHECK(session_storage_namespace_id_ !=
1566 return new RendererWebStorageNamespaceImpl(DOM_STORAGE_SESSION, 1567 dom_storage::kInvalidSessionStorageNamespaceId);
1567 session_storage_namespace_id_); 1568 return new RendererWebStorageNamespaceImpl(session_storage_namespace_id_);
1568 #endif 1569 #endif
1569 } 1570 }
1570 1571
1571 WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D( 1572 WebGraphicsContext3D* RenderViewImpl::createGraphicsContext3D(
1572 const WebGraphicsContext3D::Attributes& attributes) { 1573 const WebGraphicsContext3D::Attributes& attributes) {
1573 if (!webview()) 1574 if (!webview())
1574 return NULL; 1575 return NULL;
1575 // The WebGraphicsContext3DInProcessImpl code path is used for 1576 // The WebGraphicsContext3DInProcessImpl code path is used for
1576 // layout tests (though not through this code) as well as for 1577 // layout tests (though not through this code) as well as for
1577 // debugging and bringing up new ports. 1578 // debugging and bringing up new ports.
(...skipping 3662 matching lines...) Expand 10 before | Expand all | Expand 10 after
5240 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5241 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5241 return !!RenderThreadImpl::current()->compositor_thread(); 5242 return !!RenderThreadImpl::current()->compositor_thread();
5242 } 5243 }
5243 5244
5244 void RenderViewImpl::OnJavaBridgeInit() { 5245 void RenderViewImpl::OnJavaBridgeInit() {
5245 DCHECK(!java_bridge_dispatcher_.get()); 5246 DCHECK(!java_bridge_dispatcher_.get());
5246 #if defined(ENABLE_JAVA_BRIDGE) 5247 #if defined(ENABLE_JAVA_BRIDGE)
5247 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5248 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5248 #endif 5249 #endif
5249 } 5250 }
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