| 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 "content/browser/android/java/gin_java_bridge_dispatcher_host.h" | 5 #include "content/browser/android/java/gin_java_bridge_dispatcher_host.h" |
| 6 | 6 |
| 7 #include "base/android/java_handler_thread.h" | 7 #include "base/android/java_handler_thread.h" |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 void OnInvokeMethod(GinJavaBoundObject::ObjectID object_id, | 284 void OnInvokeMethod(GinJavaBoundObject::ObjectID object_id, |
| 285 const std::string& method_name, | 285 const std::string& method_name, |
| 286 const base::ListValue& arguments, | 286 const base::ListValue& arguments, |
| 287 IPC::Message* reply_msg) { | 287 IPC::Message* reply_msg) { |
| 288 gjbdh_->OnInvokeMethod(render_frame_host_, | 288 gjbdh_->OnInvokeMethod(render_frame_host_, |
| 289 object_id, | 289 object_id, |
| 290 method_name, | 290 method_name, |
| 291 arguments, | 291 arguments, |
| 292 reply_msg); | 292 reply_msg); |
| 293 } | 293 } |
| 294 virtual bool Send(IPC::Message* msg) OVERRIDE { | 294 virtual bool Send(IPC::Message* msg) override { |
| 295 NOTREACHED(); | 295 NOTREACHED(); |
| 296 return false; | 296 return false; |
| 297 } | 297 } |
| 298 private: | 298 private: |
| 299 GinJavaBridgeDispatcherHost* gjbdh_; | 299 GinJavaBridgeDispatcherHost* gjbdh_; |
| 300 RenderFrameHost* render_frame_host_; | 300 RenderFrameHost* render_frame_host_; |
| 301 }; | 301 }; |
| 302 | 302 |
| 303 } | 303 } |
| 304 | 304 |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 pending_replies_.erase(it); | 564 pending_replies_.erase(it); |
| 565 return reply_msg; | 565 return reply_msg; |
| 566 } | 566 } |
| 567 | 567 |
| 568 bool GinJavaBridgeDispatcherHost::HasPendingReply( | 568 bool GinJavaBridgeDispatcherHost::HasPendingReply( |
| 569 RenderFrameHost* render_frame_host) const { | 569 RenderFrameHost* render_frame_host) const { |
| 570 return pending_replies_.find(render_frame_host) != pending_replies_.end(); | 570 return pending_replies_.find(render_frame_host) != pending_replies_.end(); |
| 571 } | 571 } |
| 572 | 572 |
| 573 } // namespace content | 573 } // namespace content |
| OLD | NEW |