| 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" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 int max_length) = 0; | 217 int max_length) = 0; |
| 218 | 218 |
| 219 // Tell the render frame to enable a set of javascript bindings. The argument | 219 // Tell the render frame to enable a set of javascript bindings. The argument |
| 220 // should be a combination of values from BindingsPolicy. | 220 // should be a combination of values from BindingsPolicy. |
| 221 virtual void AllowBindings(int binding_flags) = 0; | 221 virtual void AllowBindings(int binding_flags) = 0; |
| 222 | 222 |
| 223 // Returns a bitwise OR of bindings types that have been enabled for this | 223 // Returns a bitwise OR of bindings types that have been enabled for this |
| 224 // RenderFrame. See BindingsPolicy for details. | 224 // RenderFrame. See BindingsPolicy for details. |
| 225 virtual int GetEnabledBindings() const = 0; | 225 virtual int GetEnabledBindings() const = 0; |
| 226 | 226 |
| 227 #if defined(OS_ANDROID) |
| 228 // Returns an InterfaceProvider for Java-implemented interfaces that are |
| 229 // scoped to this RenderFrameHost. This provides access to interfaces |
| 230 // implemented in Java in the browser process to C++ code in the browser |
| 231 // process. |
| 232 virtual service_manager::InterfaceProvider* GetJavaInterfaces() = 0; |
| 233 #endif // OS_ANDROID |
| 234 |
| 227 private: | 235 private: |
| 228 // This interface should only be implemented inside content. | 236 // This interface should only be implemented inside content. |
| 229 friend class RenderFrameHostImpl; | 237 friend class RenderFrameHostImpl; |
| 230 RenderFrameHost() {} | 238 RenderFrameHost() {} |
| 231 }; | 239 }; |
| 232 | 240 |
| 233 } // namespace content | 241 } // namespace content |
| 234 | 242 |
| 235 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 243 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |