OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_H_ |
7 | 7 |
8 #include <vector> | |
9 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | |
11 #include "base/string16.h" | 9 #include "base/string16.h" |
12 #include "content/common/npobject_stub.h" | |
13 #include "content/public/browser/render_view_host_observer.h" | 10 #include "content/public/browser/render_view_host_observer.h" |
14 | 11 |
15 class RouteIDGenerator; | 12 class RouteIDGenerator; |
16 struct NPObject; | 13 struct NPObject; |
17 | 14 |
18 namespace content { | 15 namespace content { |
19 class NPChannelBase; | 16 class NPChannelBase; |
20 class RenderViewHost; | 17 class RenderViewHost; |
21 struct NPVariant_Param; | 18 struct NPVariant_Param; |
22 | 19 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 55 |
59 // Message handlers | 56 // Message handlers |
60 void OnGetChannelHandle(IPC::Message* reply_msg); | 57 void OnGetChannelHandle(IPC::Message* reply_msg); |
61 | 58 |
62 void GetChannelHandle(IPC::Message* reply_msg); | 59 void GetChannelHandle(IPC::Message* reply_msg); |
63 void CreateNPVariantParam(NPObject* object, NPVariant_Param* param); | 60 void CreateNPVariantParam(NPObject* object, NPVariant_Param* param); |
64 void CreateObjectStub(NPObject* object, int route_id); | 61 void CreateObjectStub(NPObject* object, int route_id); |
65 | 62 |
66 scoped_refptr<NPChannelBase> channel_; | 63 scoped_refptr<NPChannelBase> channel_; |
67 bool is_renderer_initialized_; | 64 bool is_renderer_initialized_; |
68 std::vector<base::WeakPtr<NPObjectStub> > stubs_; | |
69 | 65 |
70 DISALLOW_COPY_AND_ASSIGN(JavaBridgeDispatcherHost); | 66 DISALLOW_COPY_AND_ASSIGN(JavaBridgeDispatcherHost); |
71 }; | 67 }; |
72 | 68 |
73 } // namespace content | 69 } // namespace content |
74 | 70 |
75 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_H_ | 71 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_H_ |
OLD | NEW |