| 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_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 | 319 |
| 320 // Functions to add and remove observers for this object. | 320 // Functions to add and remove observers for this object. |
| 321 void AddObserver(RenderFrameObserver* observer); | 321 void AddObserver(RenderFrameObserver* observer); |
| 322 void RemoveObserver(RenderFrameObserver* observer); | 322 void RemoveObserver(RenderFrameObserver* observer); |
| 323 | 323 |
| 324 // IPC message handlers ------------------------------------------------------ | 324 // IPC message handlers ------------------------------------------------------ |
| 325 // | 325 // |
| 326 // The documentation for these functions should be in | 326 // The documentation for these functions should be in |
| 327 // content/common/*_messages.h for the message that the function is handling. | 327 // content/common/*_messages.h for the message that the function is handling. |
| 328 void OnSwapOut(); | 328 void OnSwapOut(); |
| 329 void OnChildFrameProcessGone(); |
| 329 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params); | 330 void OnBuffersSwapped(const FrameMsg_BuffersSwapped_Params& params); |
| 330 void OnCompositorFrameSwapped(const IPC::Message& message); | 331 void OnCompositorFrameSwapped(const IPC::Message& message); |
| 331 | 332 |
| 332 // Stores the WebFrame we are associated with. | 333 // Stores the WebFrame we are associated with. |
| 333 blink::WebFrame* frame_; | 334 blink::WebFrame* frame_; |
| 334 | 335 |
| 335 base::WeakPtr<RenderViewImpl> render_view_; | 336 base::WeakPtr<RenderViewImpl> render_view_; |
| 336 int routing_id_; | 337 int routing_id_; |
| 337 bool is_swapped_out_; | 338 bool is_swapped_out_; |
| 338 bool is_detaching_; | 339 bool is_detaching_; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 349 ObserverList<RenderFrameObserver> observers_; | 350 ObserverList<RenderFrameObserver> observers_; |
| 350 | 351 |
| 351 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; | 352 scoped_refptr<ChildFrameCompositingHelper> compositing_helper_; |
| 352 | 353 |
| 353 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 354 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 354 }; | 355 }; |
| 355 | 356 |
| 356 } // namespace content | 357 } // namespace content |
| 357 | 358 |
| 358 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 359 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |