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

Side by Side Diff: chrome/browser/extensions/activity_log/ad_network_database.h

Issue 242303002: Add implementation for Ad Networks Database (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 6 years, 8 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace extensions { 12 namespace extensions {
13 class Action; 13 class Action;
14 14
15 // A database of ad networks. 15 // A database of ad networks.
16 class AdNetworkDatabase { 16 class AdNetworkDatabase {
17 public: 17 public:
18 virtual ~AdNetworkDatabase(); 18 virtual ~AdNetworkDatabase();
19 19
20 static const AdNetworkDatabase* Get(); 20 static const AdNetworkDatabase* Get();
21 static void SetForTesting(scoped_ptr<AdNetworkDatabase> database); 21 static void SetForTesting(scoped_ptr<AdNetworkDatabase> database);
22 22
23 // Returns true if the url is in the list of known ad networks.
23 virtual bool IsAdNetwork(const GURL& url) const = 0; 24 virtual bool IsAdNetwork(const GURL& url) const = 0;
24 }; 25 };
25 26
26 } // namespace extensions 27 } // namespace extensions
27 28
28 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_ 29 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_AD_NETWORK_DATABASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698