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

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

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 #include "chrome/browser/privacy_blacklist/blacklist_request_info.h"
6
7 // static
8 const void* const BlacklistRequestInfo::kURLRequestDataKey = 0;
9
10 BlacklistRequestInfo::BlacklistRequestInfo(const GURL& url,
11 ResourceType::Type resource_type,
12 const Blacklist* blacklist)
13 : url_(url),
14 resource_type_(resource_type),
15 blacklist_(blacklist) {
16 }
17
18 BlacklistRequestInfo::~BlacklistRequestInfo() {
19 }
20
21 // static
22 BlacklistRequestInfo* BlacklistRequestInfo::FromURLRequest(
23 const URLRequest* request) {
24 URLRequest::UserData* user_data =
25 request->GetUserData(&kURLRequestDataKey);
26 return (user_data ? static_cast<BlacklistRequestInfo*>(user_data) : NULL);
27 }
OLDNEW
« no previous file with comments | « chrome/browser/privacy_blacklist/blacklist_request_info.h ('k') | chrome/browser/privacy_blacklist/blacklist_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698