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

Side by Side Diff: trunk/src/content/browser/frame_host/render_frame_host_impl.h

Issue 177713006: Revert 251563 "Move browser initiated navigation from RenderView..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/render_frame_host.h" 14 #include "content/public/browser/render_frame_host.h"
15 15
16 class GURL; 16 class GURL;
17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params; 17 struct FrameHostMsg_DidFailProvisionalLoadWithError_Params;
18 struct FrameMsg_Navigate_Params;
19 18
20 namespace base { 19 namespace base {
21 class FilePath; 20 class FilePath;
22 } 21 }
23 22
24 namespace content { 23 namespace content {
25 24
26 class CrossProcessFrameConnector; 25 class CrossProcessFrameConnector;
27 class FrameTree; 26 class FrameTree;
28 class FrameTreeNode; 27 class FrameTreeNode;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 84 }
86 85
87 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called 86 // Sets the RVH for |this| as pending shutdown. |on_swap_out| will be called
88 // when the SwapOutACK is received. 87 // when the SwapOutACK is received.
89 void SetPendingShutdown(const base::Closure& on_swap_out); 88 void SetPendingShutdown(const base::Closure& on_swap_out);
90 89
91 // TODO(nasko): This method is public so RenderViewHostImpl::Navigate can 90 // TODO(nasko): This method is public so RenderViewHostImpl::Navigate can
92 // call it directly. It should be made private once Navigate moves here. 91 // call it directly. It should be made private once Navigate moves here.
93 void OnDidStartLoading(); 92 void OnDidStartLoading();
94 93
95 // Sends the given navigation message. Use this rather than sending it
96 // yourself since this does the internal bookkeeping described below. This
97 // function takes ownership of the provided message pointer.
98 //
99 // If a cross-site request is in progress, we may be suspended while waiting
100 // for the onbeforeunload handler, so this function might buffer the message
101 // rather than sending it.
102 void Navigate(const FrameMsg_Navigate_Params& params);
103
104 // Load the specified URL; this is a shortcut for Navigate().
105 void NavigateToURL(const GURL& url);
106
107 protected: 94 protected:
108 friend class RenderFrameHostFactory; 95 friend class RenderFrameHostFactory;
109 96
110 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost 97 // TODO(nasko): Remove dependency on RenderViewHost here. RenderProcessHost
111 // should be the abstraction needed here, but we need RenderViewHost to pass 98 // should be the abstraction needed here, but we need RenderViewHost to pass
112 // into WebContentsObserver::FrameDetached for now. 99 // into WebContentsObserver::FrameDetached for now.
113 RenderFrameHostImpl(RenderViewHostImpl* render_view_host, 100 RenderFrameHostImpl(RenderViewHostImpl* render_view_host,
114 RenderFrameHostDelegate* delegate, 101 RenderFrameHostDelegate* delegate,
115 FrameTree* frame_tree, 102 FrameTree* frame_tree,
116 FrameTreeNode* frame_tree_node, 103 FrameTreeNode* frame_tree_node,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 165
179 int routing_id_; 166 int routing_id_;
180 bool is_swapped_out_; 167 bool is_swapped_out_;
181 168
182 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); 169 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl);
183 }; 170 };
184 171
185 } // namespace content 172 } // namespace content
186 173
187 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ 174 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « trunk/src/content/browser/frame_host/navigator_impl.cc ('k') | trunk/src/content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698