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

Unified Diff: content/public/browser/web_contents_observer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/browser/notification_types.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_observer.h
diff --git a/content/public/browser/web_contents_observer.h b/content/public/browser/web_contents_observer.h
index d46f3152968ece8a631fbf7250443e37f7857a12..0057e38e02d93cf311a0952512dbaef547a8418b 100644
--- a/content/public/browser/web_contents_observer.h
+++ b/content/public/browser/web_contents_observer.h
@@ -22,7 +22,10 @@ class WebContentsImpl;
struct FaviconURL;
struct FrameNavigateParams;
struct LoadCommittedDetails;
+struct LoadFromMemoryCacheDetails;
struct Referrer;
+struct ResourceRedirectDetails;
+struct ResourceRequestDetails;
// An observer API implemented by classes which are interested in various page
// load events from WebContents. They also get a chance to filter IPC messages.
@@ -97,8 +100,7 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
// This method is invoked right after the DidStartProvisionalLoadForFrame if
// the provisional load affects the main frame, or if the provisional load
// was redirected. The latter use case is DEPRECATED. You should listen to
- // the ResourceDispatcherHost's RESOURCE_RECEIVED_REDIRECT notification
- // instead.
+ // WebContentsObserver::DidGetRedirectForResourceRequest instead.
virtual void ProvisionalChangeToMainFrameUrl(
const GURL& url,
RenderViewHost* render_view_host) {}
@@ -166,6 +168,20 @@ class CONTENT_EXPORT WebContentsObserver : public IPC::Listener,
const string16& error_description,
RenderViewHost* render_view_host) {}
+ // This method is invoked when content was loaded from an in-memory cache.
+ virtual void DidLoadResourceFromMemoryCache(
+ const LoadFromMemoryCacheDetails& details) {}
+
+ // This method is invoked when a response has been received for a resource
+ // request.
+ virtual void DidGetResourceResponseStart(
+ const ResourceRequestDetails& details) {}
+
+ // This method is invoked when a redirect was received while requesting a
+ // resource.
+ virtual void DidGetRedirectForResourceRequest(
+ const ResourceRedirectDetails& details) {}
+
// This method is invoked when a new non-pending navigation entry is created.
// This corresponds to one NavigationController entry being created
// (in the case of new navigations) or renavigated to (for back/forward
« no previous file with comments | « content/public/browser/notification_types.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698