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

Side by Side Diff: chrome/browser/privacy_blacklist/blacklist_request_info.h

Issue 2862041: Remove abonded privacy blacklist implementation. (Closed)
Patch Set: fix unit tests Created 10 years, 5 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) 2009 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_PRIVACY_BLACKLIST_BLACKLIST_REQUEST_INFO_H_
6 #define CHROME_BROWSER_PRIVACY_BLACKLIST_BLACKLIST_REQUEST_INFO_H_
7
8 #include "chrome/browser/privacy_blacklist/blacklist.h"
9 #include "googleurl/src/gurl.h"
10 #include "net/url_request/url_request.h"
11 #include "webkit/glue/resource_type.h"
12
13 class BlacklistManager;
14
15 // Privacy blacklist-related information attached to each request.
16 class BlacklistRequestInfo : public URLRequest::UserData {
17 public:
18 // Key used to access data attached to URLRequest objects.
19 static const void* const kURLRequestDataKey;
20
21 BlacklistRequestInfo(const GURL& url, ResourceType::Type resource_type,
22 const Blacklist* blacklist);
23 ~BlacklistRequestInfo();
24
25 ResourceType::Type resource_type() const { return resource_type_; }
26 const Blacklist* GetBlacklist() const {
27 return blacklist_;
28 }
29
30 // Get the blacklist request info stored in |request|, or NULL if there is no
31 // one. The object is owned by |request|.
32 static BlacklistRequestInfo* FromURLRequest(const URLRequest* request);
33
34 private:
35 // URL of the request.
36 const GURL url_;
37
38 // Type of the requested resource (main frame, image, etc).
39 const ResourceType::Type resource_type_;
40
41 // Blacklist used for the request.
42 const Blacklist* blacklist_;
43
44 DISALLOW_COPY_AND_ASSIGN(BlacklistRequestInfo);
45 };
46
47 #endif // CHROME_BROWSER_PRIVACY_BLACKLIST_BLACKLIST_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « chrome/browser/privacy_blacklist/blacklist_perftest.cc ('k') | chrome/browser/privacy_blacklist/blacklist_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698