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 #ifndef CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_H_ |
6 #define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
11 | 11 |
12 #include "base/id_map.h" | 12 #include "base/id_map.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "content/common/android/gin_java_bridge_errors.h" | 16 #include "content/common/android/gin_java_bridge_errors.h" |
17 #include "content/public/renderer/render_frame_observer.h" | 17 #include "content/public/renderer/render_frame_observer.h" |
18 | 18 |
19 namespace blink { | |
20 class WebFrame; | |
21 } | |
22 | |
23 namespace content { | 19 namespace content { |
24 | 20 |
25 class GinJavaBridgeObject; | 21 class GinJavaBridgeObject; |
26 | 22 |
27 // This class handles injecting Java objects into the main frame of a | 23 // This class handles injecting Java objects into the main frame of a |
28 // RenderView. The 'add' and 'remove' messages received from the browser | 24 // RenderView. The 'add' and 'remove' messages received from the browser |
29 // process modify the entries in a map of 'pending' objects. These objects are | 25 // process modify the entries in a map of 'pending' objects. These objects are |
30 // bound to the window object of the main frame when that window object is next | 26 // bound to the window object of the main frame when that window object is next |
31 // cleared. These objects remain bound until the window object is cleared | 27 // cleared. These objects remain bound until the window object is cleared |
32 // again. | 28 // again. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 NamedObjectMap named_objects_; | 67 NamedObjectMap named_objects_; |
72 ObjectMap objects_; | 68 ObjectMap objects_; |
73 bool inside_did_clear_window_object_; | 69 bool inside_did_clear_window_object_; |
74 | 70 |
75 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeDispatcher); | 71 DISALLOW_COPY_AND_ASSIGN(GinJavaBridgeDispatcher); |
76 }; | 72 }; |
77 | 73 |
78 } // namespace content | 74 } // namespace content |
79 | 75 |
80 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_H_ | 76 #endif // CONTENT_RENDERER_JAVA_GIN_JAVA_BRIDGE_DISPATCHER_H_ |
OLD | NEW |