Report Android Build.MODEL in SystemProfileProto hardware_class.
[chromium-blink-merge.git] / android_webview / browser / aw_javascript_dialog_manager.h
blob1c4254231b2286ea0f840229d4f199428be67adf
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 ~AwJavaScriptDialogManager() override;
17 // Overridden from content::JavaScriptDialogManager:
18 void RunJavaScriptDialog(content::WebContents* web_contents,
19 const GURL& origin_url,
20 const std::string& accept_lang,
21 content::JavaScriptMessageType message_type,
22 const base::string16& message_text,
23 const base::string16& default_prompt_text,
24 const DialogClosedCallback& callback,
25 bool* did_suppress_message) override;
26 void RunBeforeUnloadDialog(content::WebContents* web_contents,
27 const base::string16& message_text,
28 bool is_reload,
29 const DialogClosedCallback& callback) override;
30 void CancelActiveAndPendingDialogs(
31 content::WebContents* web_contents) override;
32 void ResetDialogState(content::WebContents* web_contents) override;
34 private:
35 DISALLOW_COPY_AND_ASSIGN(AwJavaScriptDialogManager);
38 } // namespace android_webview
40 #endif // ANDROID_WEBVIEW_BROWSER_AW_JAVASCRIPT_DIALOG_MANAGER_H_