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

Side by Side Diff: content/common/fileapi/file_system_dispatcher.cc

Issue 10378057: Broker out PPAPI handle duplication (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
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/view_messages.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/common/fileapi/file_system_dispatcher.h" 5 #include "content/common/fileapi/file_system_dispatcher.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "content/common/child_thread.h" 9 #include "content/common/child_thread.h"
10 #include "content/common/fileapi/file_system_messages.h" 10 #include "content/common/fileapi/file_system_messages.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 dispatcher->DidWrite(bytes, complete); 301 dispatcher->DidWrite(bytes, complete);
302 if (complete) 302 if (complete)
303 dispatchers_.Remove(request_id); 303 dispatchers_.Remove(request_id);
304 } 304 }
305 305
306 void FileSystemDispatcher::OnDidOpenFile( 306 void FileSystemDispatcher::OnDidOpenFile(
307 int request_id, IPC::PlatformFileForTransit file) { 307 int request_id, IPC::PlatformFileForTransit file) {
308 fileapi::FileSystemCallbackDispatcher* dispatcher = 308 fileapi::FileSystemCallbackDispatcher* dispatcher =
309 dispatchers_.Lookup(request_id); 309 dispatchers_.Lookup(request_id);
310 DCHECK(dispatcher); 310 DCHECK(dispatcher);
311 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file), 311 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file));
312 base::kNullProcessHandle);
313 dispatchers_.Remove(request_id); 312 dispatchers_.Remove(request_id);
314 } 313 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698