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

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

Issue 118553006: Move DidFailProvisionalLoad handling from RenderView(Host) to RenderFrame(Host). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT. Created 6 years, 11 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 (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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/process/kill.h" 13 #include "base/process/kill.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "content/public/common/javascript_message_type.h" 16 #include "content/public/common/javascript_message_type.h"
17 #include "content/public/common/media_stream_request.h" 17 #include "content/public/common/media_stream_request.h"
18 #include "content/public/common/page_transition_types.h" 18 #include "content/public/common/page_transition_types.h"
19 #include "net/base/load_states.h" 19 #include "net/base/load_states.h"
20 #include "third_party/WebKit/public/web/WebPopupType.h" 20 #include "third_party/WebKit/public/web/WebPopupType.h"
21 #include "ui/base/window_open_disposition.h" 21 #include "ui/base/window_open_disposition.h"
22 22
23 class GURL; 23 class GURL;
24 class SkBitmap; 24 class SkBitmap;
25 class WebKeyboardEvent; 25 class WebKeyboardEvent;
26 struct ViewHostMsg_CreateWindow_Params; 26 struct ViewHostMsg_CreateWindow_Params;
27 struct ViewHostMsg_DidFailProvisionalLoadWithError_Params;
28 struct ViewHostMsg_FrameNavigate_Params; 27 struct ViewHostMsg_FrameNavigate_Params;
29 struct ViewMsg_PostMessage_Params; 28 struct ViewMsg_PostMessage_Params;
30 struct WebPreferences; 29 struct WebPreferences;
31 30
32 namespace base { 31 namespace base {
33 class ListValue; 32 class ListValue;
34 class TimeTicks; 33 class TimeTicks;
35 } 34 }
36 35
37 namespace IPC { 36 namespace IPC {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // 152 //
154 // TODO(creis): Remove this method and have the pre-rendering code listen to 153 // TODO(creis): Remove this method and have the pre-rendering code listen to
155 // WebContentsObserver::DidGetRedirectForResourceRequest instead. 154 // WebContentsObserver::DidGetRedirectForResourceRequest instead.
156 // See http://crbug.com/78512. 155 // See http://crbug.com/78512.
157 virtual void DidRedirectProvisionalLoad( 156 virtual void DidRedirectProvisionalLoad(
158 RenderViewHost* render_view_host, 157 RenderViewHost* render_view_host,
159 int32 page_id, 158 int32 page_id,
160 const GURL& source_url, 159 const GURL& source_url,
161 const GURL& target_url) {} 160 const GURL& target_url) {}
162 161
163 // A provisional load in the RenderView failed.
164 virtual void DidFailProvisionalLoadWithError(
165 RenderViewHost* render_view_host,
166 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) {}
167
168 // The RenderView was navigated to a different page. 162 // The RenderView was navigated to a different page.
169 virtual void DidNavigate(RenderViewHost* render_view_host, 163 virtual void DidNavigate(RenderViewHost* render_view_host,
170 const ViewHostMsg_FrameNavigate_Params& params) {} 164 const ViewHostMsg_FrameNavigate_Params& params) {}
171 165
172 // The state for the page changed and should be updated. 166 // The state for the page changed and should be updated.
173 virtual void UpdateState(RenderViewHost* render_view_host, 167 virtual void UpdateState(RenderViewHost* render_view_host,
174 int32 page_id, 168 int32 page_id,
175 const PageState& state) {} 169 const PageState& state) {}
176 170
177 // The page's title was changed and should be updated. 171 // The page's title was changed and should be updated.
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // created by the RenderViewHost. 428 // created by the RenderViewHost.
435 virtual FrameTree* GetFrameTree(); 429 virtual FrameTree* GetFrameTree();
436 430
437 protected: 431 protected:
438 virtual ~RenderViewHostDelegate() {} 432 virtual ~RenderViewHostDelegate() {}
439 }; 433 };
440 434
441 } // namespace content 435 } // namespace content
442 436
443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 437 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_frame_host_manager.cc ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698