OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/quota_file_io.h" | 5 #include "webkit/plugins/ppapi/quota_file_io.h" |
6 | 6 |
7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 pending_operations_.pop_front(); | 358 pending_operations_.pop_front(); |
359 DCHECK(pending_operations_.empty()); | 359 DCHECK(pending_operations_.empty()); |
360 int64_t delta = (error != base::PLATFORM_FILE_OK) ? 0 : | 360 int64_t delta = (error != base::PLATFORM_FILE_OK) ? 0 : |
361 new_file_size - cached_file_size_; | 361 new_file_size - cached_file_size_; |
362 instance_->delegate()->DidUpdateFile(file_url_, delta); | 362 instance_->delegate()->DidUpdateFile(file_url_, delta); |
363 inflight_operations_ = 0; | 363 inflight_operations_ = 0; |
364 } | 364 } |
365 | 365 |
366 } // namespace ppapi | 366 } // namespace ppapi |
367 } // namespace webkit | 367 } // namespace webkit |
OLD | NEW |