Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / content / public / browser / web_contents_delegate.h
index 52e4747..b9aa02d 100644 (file)
@@ -12,6 +12,7 @@
 #include "base/callback.h"
 #include "base/strings/string16.h"
 #include "content/common/content_export.h"
+#include "content/public/browser/invalidate_type.h"
 #include "content/public/browser/navigation_type.h"
 #include "content/public/common/media_stream_request.h"
 #include "content/public/common/page_transition_types.h"
@@ -84,10 +85,9 @@ class CONTENT_EXPORT WebContentsDelegate {
 
   // Called to inform the delegate that the WebContents's navigation state
   // changed. The |changed_flags| indicates the parts of the navigation state
-  // that have been updated, and is any combination of the
-  // |WebContents::InvalidateTypes| bits.
+  // that have been updated.
   virtual void NavigationStateChanged(const WebContents* source,
-                                      unsigned changed_flags) {}
+                                      InvalidateTypes changed_flags) {}
 
   // Called to inform the delegate that the WebContent's visible SSL state (as
   // defined by SSLStatus) changed.
@@ -383,6 +383,14 @@ class CONTENT_EXPORT WebContentsDelegate {
                                        const GURL& url,
                                        bool user_gesture) {}
 
+  // Unregister the registered handler for URL requests with the given scheme.
+  // |user_gesture| is true if the registration is made in the context of a user
+  // gesture.
+  virtual void UnregisterProtocolHandler(WebContents* web_contents,
+                                         const std::string& protocol,
+                                         const GURL& url,
+                                         bool user_gesture) {}
+
   // Result of string search in the page. This includes the number of matches
   // found and the selection rect (in screen coordinates) for the string found.
   // If |final_update| is false, it indicates that more results follow.