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

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

Issue 135723003: Move DidCommitProvisionalLoad code from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing final nits. Created 6 years, 10 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_FrameNavigate_Params; 27 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
28 struct ViewMsg_PostMessage_Params; 28 struct ViewMsg_PostMessage_Params;
29 struct WebPreferences; 29 struct WebPreferences;
30 30
31 namespace base { 31 namespace base {
32 class ListValue; 32 class ListValue;
33 class TimeTicks; 33 class TimeTicks;
34 } 34 }
35 35
36 namespace IPC { 36 namespace IPC {
37 class Message; 37 class Message;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // The RenderView died somehow (crashed or was killed by the user). 141 // The RenderView died somehow (crashed or was killed by the user).
142 virtual void RenderViewTerminated(RenderViewHost* render_view_host, 142 virtual void RenderViewTerminated(RenderViewHost* render_view_host,
143 base::TerminationStatus status, 143 base::TerminationStatus status,
144 int error_code) {} 144 int error_code) {}
145 145
146 // The RenderView is going to be deleted. This is called when each 146 // The RenderView is going to be deleted. This is called when each
147 // RenderView is going to be destroyed 147 // RenderView is going to be destroyed
148 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {} 148 virtual void RenderViewDeleted(RenderViewHost* render_view_host) {}
149 149
150 // The RenderView was navigated to a different page.
151 virtual void DidNavigate(RenderViewHost* render_view_host,
152 const ViewHostMsg_FrameNavigate_Params& params) {}
153
154 // The state for the page changed and should be updated. 150 // The state for the page changed and should be updated.
155 virtual void UpdateState(RenderViewHost* render_view_host, 151 virtual void UpdateState(RenderViewHost* render_view_host,
156 int32 page_id, 152 int32 page_id,
157 const PageState& state) {} 153 const PageState& state) {}
158 154
159 // The page's title was changed and should be updated. 155 // The page's title was changed and should be updated.
160 virtual void UpdateTitle(RenderViewHost* render_view_host, 156 virtual void UpdateTitle(RenderViewHost* render_view_host,
161 int32 page_id, 157 int32 page_id,
162 const base::string16& title, 158 const base::string16& title,
163 base::i18n::TextDirection title_direction) {} 159 base::i18n::TextDirection title_direction) {}
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // created by the RenderViewHost. 408 // created by the RenderViewHost.
413 virtual FrameTree* GetFrameTree(); 409 virtual FrameTree* GetFrameTree();
414 410
415 protected: 411 protected:
416 virtual ~RenderViewHostDelegate() {} 412 virtual ~RenderViewHostDelegate() {}
417 }; 413 };
418 414
419 } // namespace content 415 } // namespace content
420 416
421 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_browsertest.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