Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(744)

Side by Side Diff: android_webview/browser/aw_safe_browsing_ui_manager.h

Issue 2635693002: [WebView] initial webview-side implementation of safebrowsing (Closed)
Patch Set: rename lock, add crbug comment Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017 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.
4 //
5 // The Safe Browsing service is responsible for downloading anti-phishing and
6 // anti-malware tables and checking urls against them. This is android_webview
7 // specific ui_manager.
8
9 #ifndef ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_UI_MANAGER_H_
10 #define ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_UI_MANAGER_H_
11
12 #include "components/safe_browsing/base_ui_manager.h"
13 #include "content/public/browser/web_contents.h"
14
15 namespace android_webview {
16
17 class AwSafeBrowsingUIManager : public safe_browsing::BaseUIManager {
18 public:
19 class UIManagerClient {
20 public:
21 static UIManagerClient* FromWebContents(content::WebContents* web_contents);
22
23 // Whether this web contents can show an interstitial
24 virtual bool CanShowInterstitial() = 0;
25 };
26
27 // Construction needs to happen on the UI thread.
28 AwSafeBrowsingUIManager();
29
30 void DisplayBlockingPage(const UnsafeResource& resource) override;
31
32 protected:
33 ~AwSafeBrowsingUIManager() override;
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(AwSafeBrowsingUIManager);
37 };
38
39 } // namespace android_webview
40
41 #endif // ANDROID_WEBVIEW_BROWSER_AW_SAFE_BROWSING_UI_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698