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

Side by Side Diff: content/renderer/pepper/resource_converter.cc

Issue 222973003: Conversion of content_shell target to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some TODOs Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/pepper/resource_converter.h" 5 #include "content/renderer/pepper/resource_converter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/public/renderer/renderer_ppapi_host.h" 9 #include "content/public/renderer/renderer_ppapi_host.h"
10 #include "content/renderer/pepper/pepper_file_system_host.h" 10 #include "content/renderer/pepper/pepper_file_system_host.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 GURL root_url = file_system_host->GetRootUrl(); 125 GURL root_url = file_system_host->GetRootUrl();
126 GURL origin; 126 GURL origin;
127 fileapi::FileSystemType type; 127 fileapi::FileSystemType type;
128 base::FilePath virtual_path; 128 base::FilePath virtual_path;
129 fileapi::ParseFileSystemSchemeURL(root_url, &origin, &type, &virtual_path); 129 fileapi::ParseFileSystemSchemeURL(root_url, &origin, &type, &virtual_path);
130 130
131 std::string name = fileapi::GetFileSystemName(origin, type); 131 std::string name = fileapi::GetFileSystemName(origin, type);
132 blink::WebFileSystemType blink_type; 132 blink::WebFileSystemType blink_type;
133 if (!FileApiFileSystemTypeToWebFileSystemType(type, &blink_type)) 133 if (!FileApiFileSystemTypeToWebFileSystemType(type, &blink_type))
134 return false; 134 return false;
135 blink::WebFrame* frame = blink::WebFrame::frameForContext(context); 135 blink::WebLocalFrame* frame = blink::WebLocalFrame::frameForContext(context);
136 blink::WebDOMFileSystem web_dom_file_system = blink::WebDOMFileSystem::create( 136 blink::WebDOMFileSystem web_dom_file_system = blink::WebDOMFileSystem::create(
137 frame, 137 frame,
138 blink_type, 138 blink_type,
139 blink::WebString::fromUTF8(name), 139 blink::WebString::fromUTF8(name),
140 root_url, 140 root_url,
141 blink::WebDOMFileSystem::SerializableTypeSerializable); 141 blink::WebDOMFileSystem::SerializableTypeSerializable);
142 *dom_file_system = web_dom_file_system.toV8Value(); 142 *dom_file_system = web_dom_file_system.toV8Value();
143 return true; 143 return true;
144 } 144 }
145 145
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 const IPC::Message& create_message, 314 const IPC::Message& create_message,
315 const IPC::Message& browser_host_create_message) { 315 const IPC::Message& browser_host_create_message) {
316 scoped_refptr<HostResourceVar> result = 316 scoped_refptr<HostResourceVar> result =
317 CreateResourceVar(pending_renderer_id, create_message); 317 CreateResourceVar(pending_renderer_id, create_message);
318 browser_host_create_messages_.push_back(browser_host_create_message); 318 browser_host_create_messages_.push_back(browser_host_create_message);
319 browser_vars.push_back(result); 319 browser_vars.push_back(result);
320 return result; 320 return result;
321 } 321 }
322 322
323 } // namespace content 323 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698