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_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 const url::Origin& content_origin, | 193 const url::Origin& content_origin, |
194 const gfx::Size& unobscured_size, | 194 const gfx::Size& unobscured_size, |
195 RecordPeripheralDecision record_decision) const = 0; | 195 RecordPeripheralDecision record_decision) const = 0; |
196 | 196 |
197 // Whitelists a |content_origin| so its content will never be throttled in | 197 // Whitelists a |content_origin| so its content will never be throttled in |
198 // this RenderFrame. Whitelist is cleared by top level navigation. | 198 // this RenderFrame. Whitelist is cleared by top level navigation. |
199 virtual void WhitelistContentOrigin(const url::Origin& content_origin) = 0; | 199 virtual void WhitelistContentOrigin(const url::Origin& content_origin) = 0; |
200 | 200 |
201 // Used by plugins that load data in this RenderFrame to update the loading | 201 // Used by plugins that load data in this RenderFrame to update the loading |
202 // notifications. | 202 // notifications. |
203 virtual void DidStartLoading() = 0; | 203 virtual void PluginDidStartLoading() = 0; |
204 virtual void DidStopLoading() = 0; | 204 virtual void PluginDidStopLoading() = 0; |
205 #endif | 205 #endif |
206 | 206 |
207 // Returns true if this frame is a FTP directory listing. | 207 // Returns true if this frame is a FTP directory listing. |
208 virtual bool IsFTPDirectoryListing() = 0; | 208 virtual bool IsFTPDirectoryListing() = 0; |
209 | 209 |
210 // Attaches the browser plugin identified by |element_instance_id| to guest | 210 // Attaches the browser plugin identified by |element_instance_id| to guest |
211 // content created by the embedder. | 211 // content created by the embedder. |
212 virtual void AttachGuest(int element_instance_id) = 0; | 212 virtual void AttachGuest(int element_instance_id) = 0; |
213 | 213 |
214 // Detaches the browser plugin identified by |element_instance_id| from guest | 214 // Detaches the browser plugin identified by |element_instance_id| from guest |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 | 247 |
248 private: | 248 private: |
249 // This interface should only be implemented inside content. | 249 // This interface should only be implemented inside content. |
250 friend class RenderFrameImpl; | 250 friend class RenderFrameImpl; |
251 RenderFrame() {} | 251 RenderFrame() {} |
252 }; | 252 }; |
253 | 253 |
254 } // namespace content | 254 } // namespace content |
255 | 255 |
256 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 256 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |