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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_
8 #include "base/compiler_specific.h"
9 #include "content/public/browser/web_ui_message_handler.h"
15 // Sends a notification when the NTP is completely finished loading
17 class NewTabPageReadyHandler
: public content::WebUIMessageHandler
{
19 NewTabPageReadyHandler();
20 virtual ~NewTabPageReadyHandler();
22 // WebUIMessageHandler implementation.
23 virtual void RegisterMessages() OVERRIDE
;
25 // Callback for "notifyNTPReady".
26 void HandleNewTabPageReady(const base::ListValue
* args
);
28 // Callback for "NTPUnexpectedNavigation".
29 void HandleNewTabPageUnexpectedNavigation(const base::ListValue
* args
);
31 // Callback for "notifyNTPTitleLoaded".
32 void HandleNewTabPageTitleLoaded(const base::ListValue
* args
);
35 DISALLOW_COPY_AND_ASSIGN(NewTabPageReadyHandler
);
38 #endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_