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 "base/supports_user_data.h" | |
11 #include "build/build_config.h" | 12 #include "build/build_config.h" |
12 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
13 #include "content/public/common/console_message_level.h" | 14 #include "content/public/common/console_message_level.h" |
14 #include "content/public/common/file_chooser_params.h" | 15 #include "content/public/common/file_chooser_params.h" |
15 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
16 #include "ipc/ipc_sender.h" | 17 #include "ipc/ipc_sender.h" |
17 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" | 18 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" |
18 #include "ui/gfx/geometry/rect.h" | 19 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
20 #include "url/gurl.h" | 21 #include "url/gurl.h" |
(...skipping 18 matching lines...) Expand all Loading... | |
39 class RenderViewHost; | 40 class RenderViewHost; |
40 class RenderWidgetHostView; | 41 class RenderWidgetHostView; |
41 class SiteInstance; | 42 class SiteInstance; |
42 struct FileChooserFileInfo; | 43 struct FileChooserFileInfo; |
43 struct FormFieldData; | 44 struct FormFieldData; |
44 | 45 |
45 using FormFieldDataCallback = base::Callback<void(const FormFieldData&)>; | 46 using FormFieldDataCallback = base::Callback<void(const FormFieldData&)>; |
46 | 47 |
47 // The interface provides a communication conduit with a frame in the renderer. | 48 // The interface provides a communication conduit with a frame in the renderer. |
48 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, | 49 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, |
49 public IPC::Sender { | 50 public IPC::Sender, |
51 public base::SupportsUserData { | |
boliu
2017/02/15 02:12:51
can this be on the impl class?
rwlbuis
2017/02/15 22:08:49
Done.
| |
50 public: | 52 public: |
51 // Returns the RenderFrameHost given its ID and the ID of its render process. | 53 // Returns the RenderFrameHost given its ID and the ID of its render process. |
52 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. | 54 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. |
53 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); | 55 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); |
54 | 56 |
55 #if defined(OS_ANDROID) | 57 #if defined(OS_ANDROID) |
56 // Globally allows for injecting JavaScript into the main world. This feature | 58 // Globally allows for injecting JavaScript into the main world. This feature |
57 // is present only to support Android WebView and must not be used in other | 59 // is present only to support Android WebView and must not be used in other |
58 // configurations. | 60 // configurations. |
59 static void AllowInjectingJavaScriptForAndroidWebView(); | 61 static void AllowInjectingJavaScriptForAndroidWebView(); |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 | 234 |
233 private: | 235 private: |
234 // This interface should only be implemented inside content. | 236 // This interface should only be implemented inside content. |
235 friend class RenderFrameHostImpl; | 237 friend class RenderFrameHostImpl; |
236 RenderFrameHost() {} | 238 RenderFrameHost() {} |
237 }; | 239 }; |
238 | 240 |
239 } // namespace content | 241 } // namespace content |
240 | 242 |
241 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 243 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |