Battery Status API: add UMA logging for Linux.
[chromium-blink-merge.git] / android_webview / browser / aw_javascript_dialog_manager.h
blobe43932dd71bd9516bba8beb07cac7b38d1b6450d
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 ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_
8 #include "content/public/browser/javascript_dialog_manager.h"
10 namespace android_webview {
12 class AwJavaScriptDialogManager : public content::JavaScriptDialogManager {
13 public:
14 explicit AwJavaScriptDialogManager();
15 virtual ~AwJavaScriptDialogManager();
17 // Overridden from content::JavaScriptDialogManager:
18 virtual void RunJavaScriptDialog(
19 content::WebContents* web_contents,
20 const GURL& origin_url,
21 const std::string& accept_lang,
22 content::JavaScriptMessageType message_type,
23 const base::string16& message_text,
24 const base::string16& default_prompt_text,
25 const DialogClosedCallback& callback,
26 bool* did_suppress_message) OVERRIDE;
27 virtual void RunBeforeUnloadDialog(
28 content::WebContents* web_contents,
29 const base::string16& message_text,
30 bool is_reload,
31 const DialogClosedCallback& callback) OVERRIDE;
32 virtual void CancelActiveAndPendingDialogs(
33 content::WebContents* web_contents) OVERRIDE;
34 virtual void WebContentsDestroyed(
35 content::WebContents* web_contents) OVERRIDE;
37 private:
38 DISALLOW_COPY_AND_ASSIGN(AwJavaScriptDialogManager);
41 } // namespace android_webview
43 #endif // ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_