OLD | NEW |
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_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 // |window_was_created_with_opener| is true if this top-level frame was | 169 // |window_was_created_with_opener| is true if this top-level frame was |
170 // created with an opener. (The opener may have been closed since.) | 170 // created with an opener. (The opener may have been closed since.) |
171 // The |proxy_route_id| is only used when creating a RenderView in swapped out | 171 // The |proxy_route_id| is only used when creating a RenderView in swapped out |
172 // state. |replicated_frame_state| contains replicated data for the | 172 // state. |replicated_frame_state| contains replicated data for the |
173 // top-level frame, such as its name and sandbox flags. | 173 // top-level frame, such as its name and sandbox flags. |
174 virtual bool CreateRenderView( | 174 virtual bool CreateRenderView( |
175 int opener_frame_route_id, | 175 int opener_frame_route_id, |
176 int proxy_route_id, | 176 int proxy_route_id, |
177 int32_t max_page_id, | 177 int32_t max_page_id, |
178 const FrameReplicationState& replicated_frame_state, | 178 const FrameReplicationState& replicated_frame_state, |
179 bool window_was_created_with_opener); | 179 bool window_was_created_with_opener, |
| 180 double zoom_level); |
180 | 181 |
181 base::TerminationStatus render_view_termination_status() const { | 182 base::TerminationStatus render_view_termination_status() const { |
182 return render_view_termination_status_; | 183 return render_view_termination_status_; |
183 } | 184 } |
184 | 185 |
185 // Tracks whether this RenderViewHost is in an active state (rather than | 186 // Tracks whether this RenderViewHost is in an active state (rather than |
186 // pending swap out, pending deletion, or swapped out), according to its main | 187 // pending swap out, pending deletion, or swapped out), according to its main |
187 // frame RenderFrameHost. | 188 // frame RenderFrameHost. |
188 bool is_active() const { return is_active_; } | 189 bool is_active() const { return is_active_; } |
189 void set_is_active(bool is_active) { is_active_ = is_active; } | 190 void set_is_active(bool is_active) { is_active_ = is_active; } |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 bool render_view_ready_on_process_launch_; | 420 bool render_view_ready_on_process_launch_; |
420 | 421 |
421 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; | 422 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; |
422 | 423 |
423 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 424 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
424 }; | 425 }; |
425 | 426 |
426 } // namespace content | 427 } // namespace content |
427 | 428 |
428 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |