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

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/omnibox_watcher.h

Issue 720163003: Safe Browsing: Add Omnibox Interaction Incident Reporter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 6 years, 1 month 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 2014 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 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_OMNIBOX_WATCHER_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_OMNIBOX_WATCHER_H_
7
8 #include "chrome/browser/safe_browsing/incident_reporting/add_incident_callback. h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11
12 namespace safe_browsing {
13
14 class OmniboxWatcher : public content::NotificationObserver {
15 public:
16 OmniboxWatcher(const AddIncidentCallback& callback);
17 ~OmniboxWatcher() override;
18
19 private:
20 // content::NotificationObserver:
21 void Observe(int type,
22 const content::NotificationSource& source,
23 const content::NotificationDetails& details) override;
24
25 // The place to send a callback when we witness a suspicious omnibox
26 // navigation.
27 const AddIncidentCallback& incident_callback_;
grt (UTC plus 2) 2014/11/15 17:56:15 AddIncidentCallback incident_callback_;
Mark P 2014/11/18 00:54:44 Done.
28
29 // Registrar for receiving Omnibox event notifications.
30 content::NotificationRegistrar registrar_;
31 };
grt (UTC plus 2) 2014/11/15 17:56:15 #include "base/macros.h" DISALLOW_COPY_AND_ASSIGN(
Mark P 2014/11/18 00:54:44 Done.
32
33 } // namespace safe_browsing
34
35 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_OMNIBOX_WATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698