Give names to all utility processes.
[chromium-blink-merge.git] / chrome / browser / extensions / activity_log / ad_network_database.h
blobdd9e06d424ac3a8b98cb8aec21289c5469b4873d
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.
5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_
8 #include "base/memory/scoped_ptr.h"
10 class GURL;
12 namespace extensions {
13 class Action;
15 // A database of ad networks.
16 class AdNetworkDatabase {
17 public:
18 virtual ~AdNetworkDatabase();
20 static const AdNetworkDatabase* Get();
21 static void SetForTesting(scoped_ptr<AdNetworkDatabase> database);
23 // Returns true if the url is in the list of known ad networks.
24 virtual bool IsAdNetwork(const GURL& url) const = 0;
27 } // namespace extensions
29 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_