summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_webnavigation_api.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_webnavigation_api.h')
-rw-r--r--chrome/browser/extensions/extension_webnavigation_api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_webnavigation_api.h b/chrome/browser/extensions/extension_webnavigation_api.h
index 0f5948e..0ecac0d 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,