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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: . Created 5 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
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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 // decidePolicyForNavigation for details. 821 // decidePolicyForNavigation for details.
822 bool opener_suppressed_; 822 bool opener_suppressed_;
823 823
824 // Whether we must stop creating nested message loops for modal dialogs until 824 // Whether we must stop creating nested message loops for modal dialogs until
825 // OnSwapOut is called. This is necessary because modal dialogs have a 825 // OnSwapOut is called. This is necessary because modal dialogs have a
826 // PageGroupLoadDeferrer on the stack that interferes with swapping out. 826 // PageGroupLoadDeferrer on the stack that interferes with swapping out.
827 bool suppress_dialogs_until_swap_out_; 827 bool suppress_dialogs_until_swap_out_;
828 828
829 // Timer used to delay the updating of nav state (see 829 // Timer used to delay the updating of nav state (see
830 // StartNavStateSyncTimerIfNecessary). 830 // StartNavStateSyncTimerIfNecessary).
831 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; 831 base::OneShotTimer nav_state_sync_timer_;
832 832
833 // Page IDs ------------------------------------------------------------------ 833 // Page IDs ------------------------------------------------------------------
834 // See documentation in RenderView. 834 // See documentation in RenderView.
835 int32 page_id_; 835 int32 page_id_;
836 836
837 // The next available page ID to use for this RenderView. These IDs are 837 // The next available page ID to use for this RenderView. These IDs are
838 // specific to a given RenderView and the frames within it. 838 // specific to a given RenderView and the frames within it.
839 int32 next_page_id_; 839 int32 next_page_id_;
840 840
841 // The offset of the current item in the history list. 841 // The offset of the current item in the history list.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 #endif 894 #endif
895 895
896 // View ---------------------------------------------------------------------- 896 // View ----------------------------------------------------------------------
897 897
898 // Cache the preferred size of the page in order to prevent sending the IPC 898 // Cache the preferred size of the page in order to prevent sending the IPC
899 // when layout() recomputes but doesn't actually change sizes. 899 // when layout() recomputes but doesn't actually change sizes.
900 gfx::Size preferred_size_; 900 gfx::Size preferred_size_;
901 901
902 // Used to delay determining the preferred size (to avoid intermediate 902 // Used to delay determining the preferred size (to avoid intermediate
903 // states for the sizes). 903 // states for the sizes).
904 base::OneShotTimer<RenderViewImpl> check_preferred_size_timer_; 904 base::OneShotTimer check_preferred_size_timer_;
905 905
906 // Bookkeeping to suppress redundant scroll and focus requests for an already 906 // Bookkeeping to suppress redundant scroll and focus requests for an already
907 // scrolled and focused editable node. 907 // scrolled and focused editable node.
908 bool has_scrolled_focused_editable_node_into_rect_; 908 bool has_scrolled_focused_editable_node_into_rect_;
909 gfx::Rect rect_for_scrolled_focused_editable_node_; 909 gfx::Rect rect_for_scrolled_focused_editable_node_;
910 910
911 // Helper objects ------------------------------------------------------------ 911 // Helper objects ------------------------------------------------------------
912 912
913 RenderFrameImpl* main_render_frame_; 913 RenderFrameImpl* main_render_frame_;
914 914
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 // use the Observer interface to filter IPC messages and receive frame change 1024 // use the Observer interface to filter IPC messages and receive frame change
1025 // notifications. 1025 // notifications.
1026 // --------------------------------------------------------------------------- 1026 // ---------------------------------------------------------------------------
1027 1027
1028 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1028 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1029 }; 1029 };
1030 1030
1031 } // namespace content 1031 } // namespace content
1032 1032
1033 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1033 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698