| 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 15 matching lines...) Expand all Loading... |
| 26 class SiteInstance; | 26 class SiteInstance; |
| 27 | 27 |
| 28 // The interface provides a communication conduit with a frame in the renderer. | 28 // The interface provides a communication conduit with a frame in the renderer. |
| 29 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, | 29 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, |
| 30 public IPC::Sender { | 30 public IPC::Sender { |
| 31 public: | 31 public: |
| 32 // Returns the RenderFrameHost given its ID and the ID of its render process. | 32 // Returns the RenderFrameHost given its ID and the ID of its render process. |
| 33 // Returns NULL if the IDs do not correspond to a live RenderFrameHost. | 33 // Returns NULL if the IDs do not correspond to a live RenderFrameHost. |
| 34 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); | 34 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); |
| 35 | 35 |
| 36 virtual ~RenderFrameHost() {} | 36 ~RenderFrameHost() override {} |
| 37 | 37 |
| 38 // Returns the route id for this frame. | 38 // Returns the route id for this frame. |
| 39 virtual int GetRoutingID() = 0; | 39 virtual int GetRoutingID() = 0; |
| 40 | 40 |
| 41 // Returns the SiteInstance grouping all RenderFrameHosts that have script | 41 // Returns the SiteInstance grouping all RenderFrameHosts that have script |
| 42 // access to this RenderFrameHost, and must therefore live in the same | 42 // access to this RenderFrameHost, and must therefore live in the same |
| 43 // process. | 43 // process. |
| 44 virtual SiteInstance* GetSiteInstance() = 0; | 44 virtual SiteInstance* GetSiteInstance() = 0; |
| 45 | 45 |
| 46 // Returns the process for this frame. | 46 // Returns the process for this frame. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 // This interface should only be implemented inside content. | 95 // This interface should only be implemented inside content. |
| 96 friend class RenderFrameHostImpl; | 96 friend class RenderFrameHostImpl; |
| 97 RenderFrameHost() {} | 97 RenderFrameHost() {} |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace content | 100 } // namespace content |
| 101 | 101 |
| 102 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 102 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |