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

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

Issue 23947003: Create WebContentsObserver callbacks for notifications, remove notifications from SSLManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: formatting Created 7 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 | 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"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class Size; 43 class Size;
44 } 44 }
45 45
46 namespace content { 46 namespace content {
47 47
48 class BrowserContext; 48 class BrowserContext;
49 class PageState; 49 class PageState;
50 class RenderViewHost; 50 class RenderViewHost;
51 class RenderViewHostDelegateView; 51 class RenderViewHostDelegateView;
52 class SessionStorageNamespace; 52 class SessionStorageNamespace;
53 class SiteInstance;
53 class WebContents; 54 class WebContents;
54 class WebContentsImpl; 55 class WebContentsImpl;
55 struct ContextMenuParams; 56 struct ContextMenuParams;
56 struct FileChooserParams; 57 struct FileChooserParams;
57 struct GlobalRequestID; 58 struct GlobalRequestID;
58 struct NativeWebKeyboardEvent; 59 struct NativeWebKeyboardEvent;
59 struct Referrer; 60 struct Referrer;
60 struct RendererPreferences; 61 struct RendererPreferences;
61 class SiteInstance; 62 struct ResourceRedirectDetails;
63 struct ResourceRequestDetails;
62 64
63 // 65 //
64 // RenderViewHostDelegate 66 // RenderViewHostDelegate
65 // 67 //
66 // An interface implemented by an object interested in knowing about the state 68 // An interface implemented by an object interested in knowing about the state
67 // of the RenderViewHost. 69 // of the RenderViewHost.
68 // 70 //
69 // This interface currently encompasses every type of message that was 71 // This interface currently encompasses every type of message that was
70 // previously being sent by WebContents itself. Some of these notifications 72 // previously being sent by WebContents itself. Some of these notifications
71 // may not be relevant to all users of RenderViewHost and we should consider 73 // may not be relevant to all users of RenderViewHost and we should consider
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 virtual void DidStartProvisionalLoadForFrame( 146 virtual void DidStartProvisionalLoadForFrame(
145 RenderViewHost* render_view_host, 147 RenderViewHost* render_view_host,
146 int64 frame_id, 148 int64 frame_id,
147 int64 parent_frame_id, 149 int64 parent_frame_id,
148 bool main_frame, 150 bool main_frame,
149 const GURL& url) {} 151 const GURL& url) {}
150 152
151 // The RenderView processed a redirect during a provisional load. 153 // The RenderView processed a redirect during a provisional load.
152 // 154 //
153 // TODO(creis): Remove this method and have the pre-rendering code listen to 155 // TODO(creis): Remove this method and have the pre-rendering code listen to
154 // the ResourceDispatcherHost's RESOURCE_RECEIVED_REDIRECT notification 156 // WebContentsObserver::DidGetRedirectForResourceRequest instead.
155 // instead. See http://crbug.com/78512. 157 // See http://crbug.com/78512.
156 virtual void DidRedirectProvisionalLoad( 158 virtual void DidRedirectProvisionalLoad(
157 RenderViewHost* render_view_host, 159 RenderViewHost* render_view_host,
158 int32 page_id, 160 int32 page_id,
159 const GURL& source_url, 161 const GURL& source_url,
160 const GURL& target_url) {} 162 const GURL& target_url) {}
161 163
162 // A provisional load in the RenderView failed. 164 // A provisional load in the RenderView failed.
163 virtual void DidFailProvisionalLoadWithError( 165 virtual void DidFailProvisionalLoadWithError(
164 RenderViewHost* render_view_host, 166 RenderViewHost* render_view_host,
165 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) {} 167 const ViewHostMsg_DidFailProvisionalLoadWithError_Params& params) {}
166 168
169 // A response has been received for a resource request.
170 virtual void DidGetResourceResponseStart(
171 const ResourceRequestDetails& details) {}
172
173 // A redirect was received while requesting a resource.
174 virtual void DidGetRedirectForResourceRequest(
175 const ResourceRedirectDetails& details) {}
176
167 // The RenderView was navigated to a different page. 177 // The RenderView was navigated to a different page.
168 virtual void DidNavigate(RenderViewHost* render_view_host, 178 virtual void DidNavigate(RenderViewHost* render_view_host,
169 const ViewHostMsg_FrameNavigate_Params& params) {} 179 const ViewHostMsg_FrameNavigate_Params& params) {}
170 180
171 // The state for the page changed and should be updated. 181 // The state for the page changed and should be updated.
172 virtual void UpdateState(RenderViewHost* render_view_host, 182 virtual void UpdateState(RenderViewHost* render_view_host,
173 int32 page_id, 183 int32 page_id,
174 const PageState& state) {} 184 const PageState& state) {}
175 185
176 // The page's title was changed and should be updated. 186 // The page's title was changed and should be updated.
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 virtual SessionStorageNamespace* GetSessionStorageNamespace( 432 virtual SessionStorageNamespace* GetSessionStorageNamespace(
423 SiteInstance* instance); 433 SiteInstance* instance);
424 434
425 protected: 435 protected:
426 virtual ~RenderViewHostDelegate() {} 436 virtual ~RenderViewHostDelegate() {}
427 }; 437 };
428 438
429 } // namespace content 439 } // namespace content
430 440
431 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 441 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/ssl/ssl_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698