| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "chrome/browser/chromeos/file_system_provider/operations/unmount.h" | 5 #include "chrome/browser/chromeos/file_system_provider/operations/unmount.h" |
| 6 | 6 |
| 7 #include "base/values.h" | 7 #include "base/values.h" |
| 8 #include "chrome/common/extensions/api/file_system_provider.h" | 8 #include "chrome/common/extensions/api/file_system_provider.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 options.request_id = request_id; | 28 options.request_id = request_id; |
| 29 | 29 |
| 30 return SendEvent( | 30 return SendEvent( |
| 31 request_id, extensions::events::FILE_SYSTEM_PROVIDER_ON_UNMOUNT_REQUESTED, | 31 request_id, extensions::events::FILE_SYSTEM_PROVIDER_ON_UNMOUNT_REQUESTED, |
| 32 extensions::api::file_system_provider::OnUnmountRequested::kEventName, | 32 extensions::api::file_system_provider::OnUnmountRequested::kEventName, |
| 33 extensions::api::file_system_provider::OnUnmountRequested::Create( | 33 extensions::api::file_system_provider::OnUnmountRequested::Create( |
| 34 options)); | 34 options)); |
| 35 } | 35 } |
| 36 | 36 |
| 37 void Unmount::OnSuccess(int /* request_id */, | 37 void Unmount::OnSuccess(int /* request_id */, |
| 38 scoped_ptr<RequestValue> /* result */, | 38 std::unique_ptr<RequestValue> /* result */, |
| 39 bool /* has_more */) { | 39 bool /* has_more */) { |
| 40 callback_.Run(base::File::FILE_OK); | 40 callback_.Run(base::File::FILE_OK); |
| 41 } | 41 } |
| 42 | 42 |
| 43 void Unmount::OnError(int /* request_id */, | 43 void Unmount::OnError(int /* request_id */, |
| 44 scoped_ptr<RequestValue> /* result */, | 44 std::unique_ptr<RequestValue> /* result */, |
| 45 base::File::Error error) { | 45 base::File::Error error) { |
| 46 callback_.Run(error); | 46 callback_.Run(error); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace operations | 49 } // namespace operations |
| 50 } // namespace file_system_provider | 50 } // namespace file_system_provider |
| 51 } // namespace chromeos | 51 } // namespace chromeos |
| OLD | NEW |