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

Side by Side Diff: webkit/plugins/ppapi/file_callbacks.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
« no previous file with comments | « webkit/plugins/ppapi/file_callbacks.h ('k') | webkit/tools/test_shell/simple_file_system.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 "webkit/plugins/ppapi/file_callbacks.h" 5 #include "webkit/plugins/ppapi/file_callbacks.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ppapi/c/pp_file_info.h" 8 #include "ppapi/c/pp_file_info.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/ppb_file_system.h" 10 #include "ppapi/c/ppb_file_system.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 info_->last_modified_time = TimeToPPTime(file_info.last_modified); 55 info_->last_modified_time = TimeToPPTime(file_info.last_modified);
56 info_->system_type = file_system_->type(); 56 info_->system_type = file_system_->type();
57 if (file_info.is_directory) 57 if (file_info.is_directory)
58 info_->type = PP_FILETYPE_DIRECTORY; 58 info_->type = PP_FILETYPE_DIRECTORY;
59 else 59 else
60 info_->type = PP_FILETYPE_REGULAR; 60 info_->type = PP_FILETYPE_REGULAR;
61 61
62 callback_->Run(PP_OK); 62 callback_->Run(PP_OK);
63 } 63 }
64 64
65 void FileCallbacks::DidCreateSnapshotFile(
66 const base::PlatformFileInfo& file_info,
67 const base::FilePath& path) {
68 NOTREACHED();
69 }
70
65 void FileCallbacks::DidReadDirectory( 71 void FileCallbacks::DidReadDirectory(
66 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more) { 72 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more) {
67 NOTREACHED(); 73 NOTREACHED();
68 } 74 }
69 75
70 void FileCallbacks::DidOpenFileSystem(const std::string&, 76 void FileCallbacks::DidOpenFileSystem(const std::string&,
71 const GURL& root_url) { 77 const GURL& root_url) {
72 if (callback_->completed()) 78 if (callback_->completed())
73 return; 79 return;
74 80
(...skipping 14 matching lines...) Expand all
89 95
90 void FileCallbacks::RunCallback(base::PlatformFileError error_code) { 96 void FileCallbacks::RunCallback(base::PlatformFileError error_code) {
91 if (callback_->completed()) 97 if (callback_->completed())
92 return; 98 return;
93 99
94 callback_->Run(::ppapi::PlatformFileErrorToPepperError(error_code)); 100 callback_->Run(::ppapi::PlatformFileErrorToPepperError(error_code));
95 } 101 }
96 102
97 } // namespace ppapi 103 } // namespace ppapi
98 } // namespace webkit 104 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/file_callbacks.h ('k') | webkit/tools/test_shell/simple_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698