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

Side by Side Diff: trunk/src/content/renderer/pepper/pepper_file_io_host.cc

Issue 60323002: Revert 232547 "Pepper: Move FileIO host from renderer to browser." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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/pepper/pepper_file_io_host.h" 5 #include "content/renderer/pepper/pepper_file_io_host.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 // On the plugin side, the callback expects a parameter with different meaning 484 // On the plugin side, the callback expects a parameter with different meaning
485 // depends on whether is negative or not. It is the result here. We translate 485 // depends on whether is negative or not. It is the result here. We translate
486 // for the callback. 486 // for the callback.
487 int32_t pp_error = ppapi::PlatformFileErrorToPepperError(error_code); 487 int32_t pp_error = ppapi::PlatformFileErrorToPepperError(error_code);
488 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written)); 488 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written));
489 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply()); 489 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply());
490 state_manager_.SetOperationFinished(); 490 state_manager_.SetOperationFinished();
491 } 491 }
492 492
493 } // namespace content 493 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/renderer/pepper/pepper_file_io_host.h ('k') | trunk/src/content/renderer/pepper/quota_file_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698