| Index: chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h
|
| diff --git a/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h b/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d3e547e17c7f258d44f29657c83f9687d15b69e7
|
| --- /dev/null
|
| +++ b/chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h
|
| @@ -0,0 +1,29 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_
|
| +#define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +namespace safe_browsing {
|
| +
|
| +class IncidentReceiver;
|
| +class SafeBrowsingDatabaseManager;
|
| +
|
| +// Registers a process-wide analysis with the incident reporting service that
|
| +// will examine modules loaded in the process.
|
| +void RegisterModuleLoadAnalysis(
|
| + const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager);
|
| +
|
| +// Callback to pass to the incident reporting service. The incident reporting
|
| +// service will decide when to start the analysis.
|
| +void VerifyModuleLoadState(
|
| + const scoped_refptr<SafeBrowsingDatabaseManager>& database_manager,
|
| + scoped_ptr<IncidentReceiver> incident_receiver);
|
| +
|
| +} // namespace safe_browsing
|
| +
|
| +#endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_MODULE_LOAD_ANALYZER_H_
|
|
|