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

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

Issue 1886413002: Always swap with a replacement proxy in OnSwapOut. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Charlie's comments Created 4 years, 8 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_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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 180
181 base::TerminationStatus render_view_termination_status() const { 181 base::TerminationStatus render_view_termination_status() const {
182 return render_view_termination_status_; 182 return render_view_termination_status_;
183 } 183 }
184 184
185 // Tracks whether this RenderViewHost is in an active state (rather than 185 // Tracks whether this RenderViewHost is in an active state (rather than
186 // pending swap out, pending deletion, or swapped out), according to its main 186 // pending swap out or swapped out), according to its main frame
187 // frame RenderFrameHost. 187 // RenderFrameHost.
188 bool is_active() const { return is_active_; } 188 bool is_active() const { return is_active_; }
189 void set_is_active(bool is_active) { is_active_ = is_active; } 189 void set_is_active(bool is_active) { is_active_ = is_active; }
190 190
191 // Tracks whether this RenderViewHost is swapped out, according to its main 191 // Tracks whether this RenderViewHost is swapped out, according to its main
192 // frame RenderFrameHost. 192 // frame RenderFrameHost.
193 void set_is_swapped_out(bool is_swapped_out) { 193 void set_is_swapped_out(bool is_swapped_out) {
194 is_swapped_out_ = is_swapped_out; 194 is_swapped_out_ = is_swapped_out;
195 } 195 }
196 196
197 // TODO(creis): Remove as part of http://crbug.com/418265. 197 // TODO(creis): Remove as part of http://crbug.com/418265.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 bool render_view_ready_on_process_launch_; 409 bool render_view_ready_on_process_launch_;
410 410
411 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_; 411 base::WeakPtrFactory<RenderViewHostImpl> weak_factory_;
412 412
413 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 413 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
414 }; 414 };
415 415
416 } // namespace content 416 } // namespace content
417 417
418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 418 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698