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_MANAGER_H
_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_MANAGER_H
_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_MANAGER_H
_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_MANAGER_H
_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/android/jni_helper.h" | 10 #include "base/android/jni_helper.h" |
11 #include "base/android/scoped_java_ref.h" | 11 #include "base/android/scoped_java_ref.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "content/public/browser/web_contents_observer.h" | 16 #include "content/public/browser/web_contents_observer.h" |
17 | 17 |
18 struct NPObject; | 18 struct NPObject; |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class JavaBridgeDispatcherHost; | 21 class JavaBridgeDispatcherHost; |
22 class RenderViewHost; | 22 class RenderViewHost; |
23 | 23 |
24 // This class handles injecting Java objects into all of the RenderViews | 24 // This class handles injecting Java objects into all of the RenderViews |
25 // associated with a WebContents. It manages a set of JavaBridgeDispatcherHost | 25 // associated with a WebContents. It manages a set of JavaBridgeDispatcherHost |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 typedef std::map<string16, NPObject*> ObjectMap; | 61 typedef std::map<string16, NPObject*> ObjectMap; |
62 ObjectMap objects_; | 62 ObjectMap objects_; |
63 JavaObjectWeakGlobalRef retained_object_set_; | 63 JavaObjectWeakGlobalRef retained_object_set_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(JavaBridgeDispatcherHostManager); | 65 DISALLOW_COPY_AND_ASSIGN(JavaBridgeDispatcherHostManager); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
69 | 69 |
70 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_MANAGE
R_H_ | 70 #endif // CONTENT_BROWSER_RENDERER_HOST_JAVA_JAVA_BRIDGE_DISPATCHER_HOST_MANAGE
R_H_ |
OLD | NEW |