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

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

Issue 12084077: FileSystem mods: Changes to snapshot file creation to remove dependencies on blobs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/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_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/files/file_util_proxy.h" 9 #include "base/files/file_util_proxy.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 virtual void DidSucceed() OVERRIDE { 55 virtual void DidSucceed() OVERRIDE {
56 callback_.Run(base::PLATFORM_FILE_OK); 56 callback_.Run(base::PLATFORM_FILE_OK);
57 } 57 }
58 58
59 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info, 59 virtual void DidReadMetadata(const base::PlatformFileInfo& file_info,
60 const FilePath& platform_path) OVERRIDE { 60 const FilePath& platform_path) OVERRIDE {
61 NOTREACHED(); 61 NOTREACHED();
62 } 62 }
63 63
64 virtual void DidCreateSnapshotFile(
65 const base::PlatformFileInfo& file_info,
66 const base::FilePath& platform_path) OVERRIDE {
67 NOTREACHED();
68 }
69
64 virtual void DidReadDirectory( 70 virtual void DidReadDirectory(
65 const std::vector<base::FileUtilProxy::Entry>& entries, 71 const std::vector<base::FileUtilProxy::Entry>& entries,
66 bool has_more) OVERRIDE { 72 bool has_more) OVERRIDE {
67 NOTREACHED(); 73 NOTREACHED();
68 } 74 }
69 75
70 virtual void DidOpenFileSystem(const std::string& name, 76 virtual void DidOpenFileSystem(const std::string& name,
71 const GURL& root) OVERRIDE { 77 const GURL& root) OVERRIDE {
72 NOTREACHED(); 78 NOTREACHED();
73 } 79 }
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 // depends on whether is negative or not. It is the result here. We translate 563 // depends on whether is negative or not. It is the result here. We translate
558 // for the callback. 564 // for the callback.
559 int32_t pp_error = ::ppapi::PlatformFileErrorToPepperError(error_code); 565 int32_t pp_error = ::ppapi::PlatformFileErrorToPepperError(error_code);
560 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written)); 566 reply_context.params.set_result(ErrorOrByteNumber(pp_error, bytes_written));
561 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply()); 567 host()->SendReply(reply_context, PpapiPluginMsg_FileIO_GeneralReply());
562 state_manager_.SetOperationFinished(); 568 state_manager_.SetOperationFinished();
563 } 569 }
564 570
565 } // namespace content 571 } // namespace content
566 572
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_directory_reader_host.cc ('k') | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698