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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated enne and jbauman's feedback. Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event, 754 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event,
755 InputEventAckState ack_result) OVERRIDE; 755 InputEventAckState ack_result) OVERRIDE;
756 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; 756 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE;
757 757
758 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); 758 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event);
759 759
760 // Called when there is a new auto resize (using a post to avoid a stack 760 // Called when there is a new auto resize (using a post to avoid a stack
761 // which may get in recursive loops). 761 // which may get in recursive loops).
762 void DelayedAutoResized(); 762 void DelayedAutoResized();
763 763
764 void WindowSnapshotReachedScreen(int snapshot_id);
765
764 // Our delegate, which wants to know mainly about keyboard events. 766 // Our delegate, which wants to know mainly about keyboard events.
765 // It will remain non-NULL until DetachDelegate() is called. 767 // It will remain non-NULL until DetachDelegate() is called.
766 RenderWidgetHostDelegate* delegate_; 768 RenderWidgetHostDelegate* delegate_;
767 769
768 // Created during construction but initialized during Init*(). Therefore, it 770 // Created during construction but initialized during Init*(). Therefore, it
769 // is guaranteed never to be NULL, but its channel may be NULL if the 771 // is guaranteed never to be NULL, but its channel may be NULL if the
770 // renderer crashed, so you must always check that. 772 // renderer crashed, so you must always check that.
771 RenderProcessHost* process_; 773 RenderProcessHost* process_;
772 774
773 // The ID of the corresponding object in the Renderer Instance. 775 // The ID of the corresponding object in the Renderer Instance.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 int64 last_input_number_; 936 int64 last_input_number_;
935 937
936 BrowserRenderingStats rendering_stats_; 938 BrowserRenderingStats rendering_stats_;
937 939
938 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 940 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
939 }; 941 };
940 942
941 } // namespace content 943 } // namespace content
942 944
943 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 945 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698