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

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

Issue 12886018: Add support for WEBKIT_USE_NEW_WEBFILESYSTEMTYPE (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/worker/websharedworkerclient_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 #include "media/filters/gpu_video_decoder.h" 118 #include "media/filters/gpu_video_decoder.h"
119 #include "net/base/data_url.h" 119 #include "net/base/data_url.h"
120 #include "net/base/escape.h" 120 #include "net/base/escape.h"
121 #include "net/base/net_errors.h" 121 #include "net/base/net_errors.h"
122 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" 122 #include "net/base/registry_controlled_domains/registry_controlled_domain.h"
123 #include "net/http/http_util.h" 123 #include "net/http/http_util.h"
124 #include "third_party/skia/include/core/SkBitmap.h" 124 #include "third_party/skia/include/core/SkBitmap.h"
125 #include "third_party/skia/include/core/SkPicture.h" 125 #include "third_party/skia/include/core/SkPicture.h"
126 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" 126 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h"
127 #include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h" 127 #include "third_party/WebKit/Source/Platform/chromium/public/WebDragData.h"
128 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileSystemType.h "
128 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h" 129 #include "third_party/WebKit/Source/Platform/chromium/public/WebHTTPBody.h"
129 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h" 130 #include "third_party/WebKit/Source/Platform/chromium/public/WebImage.h"
130 #include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChann el.h" 131 #include "third_party/WebKit/Source/Platform/chromium/public/WebMessagePortChann el.h"
131 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" 132 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
132 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" 133 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
133 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" 134 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
134 #include "third_party/WebKit/Source/Platform/chromium/public/WebSocketStreamHand le.h" 135 #include "third_party/WebKit/Source/Platform/chromium/public/WebSocketStreamHand le.h"
135 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 136 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
136 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" 137 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h"
137 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h" 138 #include "third_party/WebKit/Source/Platform/chromium/public/WebURLError.h"
(...skipping 4077 matching lines...) Expand 10 before | Expand all | Expand 10 after
4215 const WebRect& selection_rect) { 4216 const WebRect& selection_rect) {
4216 SendFindReply(request_id, 4217 SendFindReply(request_id,
4217 -1, 4218 -1,
4218 active_match_ordinal, 4219 active_match_ordinal,
4219 selection_rect, 4220 selection_rect,
4220 false); 4221 false);
4221 } 4222 }
4222 4223
4223 void RenderViewImpl::openFileSystem( 4224 void RenderViewImpl::openFileSystem(
4224 WebFrame* frame, 4225 WebFrame* frame,
4226 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
4227 WebKit::WebFileSystemType type,
4228 #else
4225 WebFileSystem::Type type, 4229 WebFileSystem::Type type,
4230 #endif
4226 long long size, 4231 long long size,
4227 bool create, 4232 bool create,
4228 WebFileSystemCallbacks* callbacks) { 4233 WebFileSystemCallbacks* callbacks) {
4229 DCHECK(callbacks); 4234 DCHECK(callbacks);
4230 4235
4231 WebSecurityOrigin origin = frame->document().securityOrigin(); 4236 WebSecurityOrigin origin = frame->document().securityOrigin();
4232 if (origin.isUnique()) { 4237 if (origin.isUnique()) {
4233 // Unique origins cannot store persistent state. 4238 // Unique origins cannot store persistent state.
4234 callbacks->didFail(WebKit::WebFileErrorAbort); 4239 callbacks->didFail(WebKit::WebFileErrorAbort);
4235 return; 4240 return;
4236 } 4241 }
4237 4242
4238 ChildThread::current()->file_system_dispatcher()->OpenFileSystem( 4243 ChildThread::current()->file_system_dispatcher()->OpenFileSystem(
4239 GURL(origin.toString()), static_cast<fileapi::FileSystemType>(type), 4244 GURL(origin.toString()), static_cast<fileapi::FileSystemType>(type),
4240 size, create, new WebFileSystemCallbackDispatcher(callbacks)); 4245 size, create, new WebFileSystemCallbackDispatcher(callbacks));
4241 } 4246 }
4242 4247
4243 void RenderViewImpl::deleteFileSystem( 4248 void RenderViewImpl::deleteFileSystem(
4244 WebFrame* frame, 4249 WebFrame* frame,
4250 #ifdef WEBKIT_USE_NEW_WEBFILESYSTEMTYPE
4251 WebKit::WebFileSystemType type ,
4252 #else
4245 WebFileSystem::Type type , 4253 WebFileSystem::Type type ,
4254 #endif
4246 WebFileSystemCallbacks* callbacks) { 4255 WebFileSystemCallbacks* callbacks) {
4247 DCHECK(callbacks); 4256 DCHECK(callbacks);
4248 4257
4249 WebSecurityOrigin origin = frame->document().securityOrigin(); 4258 WebSecurityOrigin origin = frame->document().securityOrigin();
4250 if (origin.isUnique()) { 4259 if (origin.isUnique()) {
4251 // Unique origins cannot store persistent state. 4260 // Unique origins cannot store persistent state.
4252 callbacks->didSucceed(); 4261 callbacks->didSucceed();
4253 return; 4262 return;
4254 } 4263 }
4255 4264
(...skipping 2343 matching lines...) Expand 10 before | Expand all | Expand 10 after
6599 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6608 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6600 RenderProcess::current()->ReleaseTransportDIB(dib); 6609 RenderProcess::current()->ReleaseTransportDIB(dib);
6601 } 6610 }
6602 6611
6603 void RenderViewImpl::DidCommitCompositorFrame() { 6612 void RenderViewImpl::DidCommitCompositorFrame() {
6604 RenderWidget::DidCommitCompositorFrame(); 6613 RenderWidget::DidCommitCompositorFrame();
6605 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); 6614 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame());
6606 } 6615 }
6607 6616
6608 } // namespace content 6617 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/worker/websharedworkerclient_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698