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

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

Issue 1412243003: Mark RFH::AllowInjectingJavaScriptForAndroidWebView as Android only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 17 matching lines...) Expand all
28 class SiteInstance; 28 class SiteInstance;
29 29
30 // The interface provides a communication conduit with a frame in the renderer. 30 // The interface provides a communication conduit with a frame in the renderer.
31 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 31 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
32 public IPC::Sender { 32 public IPC::Sender {
33 public: 33 public:
34 // Returns the RenderFrameHost given its ID and the ID of its render process. 34 // Returns the RenderFrameHost given its ID and the ID of its render process.
35 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. 35 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost.
36 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); 36 static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
37 37
38 #if defined(OS_ANDROID)
38 // Globally allows for injecting JavaScript into the main world. This feature 39 // Globally allows for injecting JavaScript into the main world. This feature
39 // is present only to support Android WebView and must not be used in other 40 // is present only to support Android WebView and must not be used in other
40 // configurations. 41 // configurations.
41 static void AllowInjectingJavaScriptForAndroidWebView(); 42 static void AllowInjectingJavaScriptForAndroidWebView();
43 #endif
42 44
43 // Returns a RenderFrameHost given its accessibility tree ID. 45 // Returns a RenderFrameHost given its accessibility tree ID.
44 static RenderFrameHost* FromAXTreeID(int ax_tree_id); 46 static RenderFrameHost* FromAXTreeID(int ax_tree_id);
45 47
46 ~RenderFrameHost() override {} 48 ~RenderFrameHost() override {}
47 49
48 // Returns the route id for this frame. 50 // Returns the route id for this frame.
49 virtual int GetRoutingID() = 0; 51 virtual int GetRoutingID() = 0;
50 52
51 // Returns the accessibility tree ID for this RenderFrameHost. 53 // Returns the accessibility tree ID for this RenderFrameHost.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 152
151 private: 153 private:
152 // This interface should only be implemented inside content. 154 // This interface should only be implemented inside content.
153 friend class RenderFrameHostImpl; 155 friend class RenderFrameHostImpl;
154 RenderFrameHost() {} 156 RenderFrameHost() {}
155 }; 157 };
156 158
157 } // namespace content 159 } // namespace content
158 160
159 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 161 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698