| 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/operation.h" | 5 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 7 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 8 #include "extensions/browser/event_router.h" | 8 #include "extensions/browser/event_router.h" |
| 9 | 9 |
| 10 namespace chromeos { | 10 namespace chromeos { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 void Operation::SetDispatchEventImplForTesting( | 40 void Operation::SetDispatchEventImplForTesting( |
| 41 const DispatchEventImplCallback& callback) { | 41 const DispatchEventImplCallback& callback) { |
| 42 dispatch_event_impl_ = callback; | 42 dispatch_event_impl_ = callback; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool Operation::SendEvent(int request_id, | 45 bool Operation::SendEvent(int request_id, |
| 46 const std::string& event_name, | 46 const std::string& event_name, |
| 47 scoped_ptr<base::ListValue> event_args) { | 47 scoped_ptr<base::ListValue> event_args) { |
| 48 return dispatch_event_impl_.Run( | 48 return dispatch_event_impl_.Run(make_scoped_ptr(new extensions::Event( |
| 49 make_scoped_ptr(new extensions::Event(event_name, event_args.Pass()))); | 49 extensions::events::UNKNOWN, event_name, event_args.Pass()))); |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace operations | 52 } // namespace operations |
| 53 } // namespace file_system_provider | 53 } // namespace file_system_provider |
| 54 } // namespace chromeos | 54 } // namespace chromeos |
| OLD | NEW |