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

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

Issue 587933002: Remove old navigation APIs from RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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_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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 int32 max_page_id, 229 int32 max_page_id,
230 bool window_was_created_with_opener); 230 bool window_was_created_with_opener);
231 231
232 base::TerminationStatus render_view_termination_status() const { 232 base::TerminationStatus render_view_termination_status() const {
233 return render_view_termination_status_; 233 return render_view_termination_status_;
234 } 234 }
235 235
236 // Returns the content specific prefs for this RenderViewHost. 236 // Returns the content specific prefs for this RenderViewHost.
237 WebPreferences ComputeWebkitPrefs(const GURL& url); 237 WebPreferences ComputeWebkitPrefs(const GURL& url);
238 238
239 // Sends the given navigation message. Use this rather than sending it
240 // yourself since this does the internal bookkeeping described below. This
241 // function takes ownership of the provided message pointer.
242 //
243 // If a cross-site request is in progress, we may be suspended while waiting
244 // for the onbeforeunload handler, so this function might buffer the message
245 // rather than sending it.
246 // TODO(nasko): Remove this method once all callers are converted to use
247 // RenderFrameHostImpl.
248 void Navigate(const FrameMsg_Navigate_Params& message);
249
250 // Load the specified URL, this is a shortcut for Navigate().
251 // TODO(nasko): Remove this method once all callers are converted to use
252 // RenderFrameHostImpl.
253 void NavigateToURL(const GURL& url);
254
255 // Whether this RenderViewHost has been swapped out to be displayed by a 239 // Whether this RenderViewHost has been swapped out to be displayed by a
256 // different process. 240 // different process.
257 bool IsSwappedOut() const { return rvh_state_ == STATE_SWAPPED_OUT; } 241 bool IsSwappedOut() const { return rvh_state_ == STATE_SWAPPED_OUT; }
258 242
259 // The current state of this RVH. 243 // The current state of this RVH.
260 RenderViewHostImplState rvh_state() const { return rvh_state_; } 244 RenderViewHostImplState rvh_state() const { return rvh_state_; }
261 245
262 // Tells the renderer that this RenderView will soon be swapped out, and thus 246 // Tells the renderer that this RenderView will soon be swapped out, and thus
263 // not to create any new modal dialogs until it happens. This must be done 247 // not to create any new modal dialogs until it happens. This must be done
264 // separately so that the PageGroupLoadDeferrers of any current dialogs are no 248 // separately so that the PageGroupLoadDeferrers of any current dialogs are no
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 525 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
542 }; 526 };
543 527
544 #if defined(COMPILER_MSVC) 528 #if defined(COMPILER_MSVC)
545 #pragma warning(pop) 529 #pragma warning(pop)
546 #endif 530 #endif
547 531
548 } // namespace content 532 } // namespace content
549 533
550 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 534 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.cc ('k') | content/browser/renderer_host/render_view_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698