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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/privacy_blacklist/blacklist_request_info.h
diff --git a/chrome/browser/privacy_blacklist/blacklist_request_info.h b/chrome/browser/privacy_blacklist/blacklist_request_info.h
deleted file mode 100644
index f662d419058af518795c76d886c4dde931dfab74..0000000000000000000000000000000000000000
--- a/chrome/browser/privacy_blacklist/blacklist_request_info.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2009 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_PRIVACY_BLACKLIST_BLACKLIST_REQUEST_INFO_H_
-#define CHROME_BROWSER_PRIVACY_BLACKLIST_BLACKLIST_REQUEST_INFO_H_
-
-#include "chrome/browser/privacy_blacklist/blacklist.h"
-#include "googleurl/src/gurl.h"
-#include "net/url_request/url_request.h"
-#include "webkit/glue/resource_type.h"
-
-class BlacklistManager;
-
-// Privacy blacklist-related information attached to each request.
-class BlacklistRequestInfo : public URLRequest::UserData {
- public:
- // Key used to access data attached to URLRequest objects.
- static const void* const kURLRequestDataKey;
-
- BlacklistRequestInfo(const GURL& url, ResourceType::Type resource_type,
- const Blacklist* blacklist);
- ~BlacklistRequestInfo();
-
- ResourceType::Type resource_type() const { return resource_type_; }
- const Blacklist* GetBlacklist() const {
- return blacklist_;
- }
-
- // Get the blacklist request info stored in |request|, or NULL if there is no
- // one. The object is owned by |request|.
- static BlacklistRequestInfo* FromURLRequest(const URLRequest* request);
-
- private:
- // URL of the request.
- const GURL url_;
-
- // Type of the requested resource (main frame, image, etc).
- const ResourceType::Type resource_type_;
-
- // Blacklist used for the request.
- const Blacklist* blacklist_;
-
- DISALLOW_COPY_AND_ASSIGN(BlacklistRequestInfo);
-};
-
-#endif // CHROME_BROWSER_PRIVACY_BLACKLIST_BLACKLIST_REQUEST_INFO_H_
« 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