Index: chrome/browser/extensions/extension_webnavigation_api.h |
diff --git a/chrome/browser/extensions/extension_webnavigation_api.h b/chrome/browser/extensions/extension_webnavigation_api.h |
index 0f5948e791d15d1b271e2ed6dea24bc45618055a..0ecac0dd339e4918825ba443923378c1203f86b8 100644 |
--- a/chrome/browser/extensions/extension_webnavigation_api.h |
+++ b/chrome/browser/extensions/extension_webnavigation_api.h |
@@ -21,6 +21,7 @@ |
class NavigationController; |
class ProvisionalLoadDetails; |
class TabContents; |
+struct ViewHostMsg_CreateWindow_Params; |
// Tracks the navigation state of all frames currently known to the |
// webNavigation API. It is mainly used to track in which frames an error |
@@ -121,6 +122,12 @@ class ExtensionWebNavigationEventRouter : public NotificationObserver { |
void FailProvisionalLoadWithError(NavigationController* controller, |
ProvisionalLoadDetails* details); |
+ // Handler for the CREATING_NEW_WINDOW event. The method takes the details of |
+ // such an event and constructs a suitable JSON formatted extension event from |
+ // it. |
+ void CreatingNewWindow(TabContents* tab_content, |
+ const ViewHostMsg_CreateWindow_Params* details); |
+ |
// Dispatches events to the extension message service. |
void DispatchEvent(Profile* context, |
const char* event_name, |