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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
13 #include "content/public/common/console_message_level.h" | 13 #include "content/public/common/console_message_level.h" |
14 #include "content/public/common/file_chooser_params.h" | 14 #include "content/public/common/file_chooser_params.h" |
15 #include "ipc/ipc_listener.h" | 15 #include "ipc/ipc_listener.h" |
16 #include "ipc/ipc_sender.h" | 16 #include "ipc/ipc_sender.h" |
17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
18 #include "ui/gfx/geometry/rect.h" | 18 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 #include "url/origin.h" | 21 #include "url/origin.h" |
22 | 22 |
| 23 #if defined(OS_ANDROID) |
| 24 #include "base/android/scoped_java_ref.h" |
| 25 #endif |
| 26 |
23 namespace base { | 27 namespace base { |
24 class Value; | 28 class Value; |
25 } | 29 } |
26 | 30 |
27 namespace service_manager { | 31 namespace service_manager { |
28 class InterfaceRegistry; | 32 class InterfaceRegistry; |
29 class InterfaceProvider; | 33 class InterfaceProvider; |
30 } | 34 } |
31 | 35 |
32 namespace ui { | 36 namespace ui { |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 int max_length) = 0; | 221 int max_length) = 0; |
218 | 222 |
219 // Tell the render frame to enable a set of javascript bindings. The argument | 223 // Tell the render frame to enable a set of javascript bindings. The argument |
220 // should be a combination of values from BindingsPolicy. | 224 // should be a combination of values from BindingsPolicy. |
221 virtual void AllowBindings(int binding_flags) = 0; | 225 virtual void AllowBindings(int binding_flags) = 0; |
222 | 226 |
223 // Returns a bitwise OR of bindings types that have been enabled for this | 227 // Returns a bitwise OR of bindings types that have been enabled for this |
224 // RenderFrame. See BindingsPolicy for details. | 228 // RenderFrame. See BindingsPolicy for details. |
225 virtual int GetEnabledBindings() const = 0; | 229 virtual int GetEnabledBindings() const = 0; |
226 | 230 |
| 231 #if defined(OS_ANDROID) |
| 232 virtual base::android::ScopedJavaLocalRef<jobject> |
| 233 GetJavaRenderFrameHost() = 0; |
| 234 |
| 235 // Returns an InterfaceProvider for Java-implemented interfaces that are |
| 236 // scoped to this RenderFrameHost. This provides access to interfaces |
| 237 // implemented in Java in the browser process to C++ code in the browser |
| 238 // process. |
| 239 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; |
| 240 #endif // OS_ANDROID |
| 241 |
227 private: | 242 private: |
228 // This interface should only be implemented inside content. | 243 // This interface should only be implemented inside content. |
229 friend class RenderFrameHostImpl; | 244 friend class RenderFrameHostImpl; |
230 RenderFrameHost() {} | 245 RenderFrameHost() {} |
231 }; | 246 }; |
232 | 247 |
233 } // namespace content | 248 } // namespace content |
234 | 249 |
235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 250 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |