Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 2681933002: Add Java wrapper for RenderFrameHost (Closed)
Patch Set: Fix potential dtor problem Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0; 227 virtual void RequestFocusedFormFieldData(FormFieldDataCallback& callback) = 0;
224 228
225 // Tell the render frame to enable a set of javascript bindings. The argument 229 // Tell the render frame to enable a set of javascript bindings. The argument
226 // should be a combination of values from BindingsPolicy. 230 // should be a combination of values from BindingsPolicy.
227 virtual void AllowBindings(int binding_flags) = 0; 231 virtual void AllowBindings(int binding_flags) = 0;
228 232
229 // Returns a bitwise OR of bindings types that have been enabled for this 233 // Returns a bitwise OR of bindings types that have been enabled for this
230 // RenderFrame. See BindingsPolicy for details. 234 // RenderFrame. See BindingsPolicy for details.
231 virtual int GetEnabledBindings() const = 0; 235 virtual int GetEnabledBindings() const = 0;
232 236
237 #if defined(OS_ANDROID)
238 CONTENT_EXPORT static RenderFrameHost* FromJavaRenderFrameHost(
boliu 2017/02/16 01:00:58 this should be on RenderFrameHostAndroid
rwlbuis 2017/03/01 21:53:57 Ok, turned out we do not need it.
239 const base::android::JavaRef<jobject>& jrender_frame_host_android);
240 #endif
241
233 private: 242 private:
234 // This interface should only be implemented inside content. 243 // This interface should only be implemented inside content.
235 friend class RenderFrameHostImpl; 244 friend class RenderFrameHostImpl;
236 RenderFrameHost() {} 245 RenderFrameHost() {}
237 }; 246 };
238 247
239 } // namespace content 248 } // namespace content
240 249
241 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 250 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698