NaCl: Update revision in DEPS, r12770 -> r12773
[chromium-blink-merge.git] / chrome / browser / ui / webui / ntp / android / new_tab_page_ready_handler.h
blob3778277439f37937bbe40bb16e250eb076b6d957
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"
11 namespace base {
12 class ListValue;
15 // Sends a notification when the NTP is completely finished loading
16 // and navigating.
17 class NewTabPageReadyHandler : public content::WebUIMessageHandler {
18 public:
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);
34 private:
35 DISALLOW_COPY_AND_ASSIGN(NewTabPageReadyHandler);
38 #endif // CHROME_BROWSER_UI_WEBUI_NTP_ANDROID_NEW_TAB_PAGE_READY_HANDLER_H_