| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "extensions/renderer/extension_frame_helper.h" | 5 #include "extensions/renderer/extension_frame_helper.h" |
| 6 | 6 |
| 7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
| 8 #include "content/public/renderer/render_frame.h" | 8 #include "content/public/renderer/render_frame.h" |
| 9 #include "extensions/common/api/messaging/message.h" | 9 #include "extensions/common/api/messaging/message.h" |
| 10 #include "extensions/common/constants.h" | 10 #include "extensions/common/constants.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 const std::string& extension_id, | 275 const std::string& extension_id, |
| 276 const std::string& module_name, | 276 const std::string& module_name, |
| 277 const std::string& function_name, | 277 const std::string& function_name, |
| 278 const base::ListValue& args, | 278 const base::ListValue& args, |
| 279 bool user_gesture) { | 279 bool user_gesture) { |
| 280 extension_dispatcher_->InvokeModuleSystemMethod(render_frame(), extension_id, | 280 extension_dispatcher_->InvokeModuleSystemMethod(render_frame(), extension_id, |
| 281 module_name, function_name, | 281 module_name, function_name, |
| 282 args, user_gesture); | 282 args, user_gesture); |
| 283 } | 283 } |
| 284 | 284 |
| 285 void ExtensionFrameHelper::OnDestruct() { |
| 286 delete this; |
| 287 } |
| 288 |
| 285 } // namespace extensions | 289 } // namespace extensions |
| OLD | NEW |