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

Side by Side Diff: chrome/browser/safe_browsing/client_side_detection_host.h

Issue 7538009: Send back the URL that matched the SafeBrowsing list with the CSD ping. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Matt's comments. Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Keeps some info about the current page visit while the renderer 110 // Keeps some info about the current page visit while the renderer
111 // classification is going on. Since we cancel classification on 111 // classification is going on. Since we cancel classification on
112 // every page load we can simply keep this data around as a member 112 // every page load we can simply keep this data around as a member
113 // variable. This information will be passed on to the feature extractor. 113 // variable. This information will be passed on to the feature extractor.
114 scoped_ptr<BrowseInfo> browse_info_; 114 scoped_ptr<BrowseInfo> browse_info_;
115 // Handles registering notifications with the NotificationService. 115 // Handles registering notifications with the NotificationService.
116 NotificationRegistrar registrar_; 116 NotificationRegistrar registrar_;
117 117
118 base::ScopedCallbackFactory<ClientSideDetectionHost> cb_factory_; 118 base::ScopedCallbackFactory<ClientSideDetectionHost> cb_factory_;
119 119
120 // Unique page ID of the most recent unsafe site that was loaded in this tab. 120 // Unique page ID of the most recent unsafe site that was loaded in this tab
121 // as well as the UnsafeResource.
121 int unsafe_unique_page_id_; 122 int unsafe_unique_page_id_;
123 scoped_ptr<SafeBrowsingService::UnsafeResource> unsafe_resource_;
122 124
123 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost); 125 DISALLOW_COPY_AND_ASSIGN(ClientSideDetectionHost);
124 }; 126 };
125 127
126 } // namespace safe_browsing 128 } // namespace safe_browsing
127 129
128 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_ 130 #endif // CHROME_BROWSER_SAFE_BROWSING_CLIENT_SIDE_DETECTION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698