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

Side by Side Diff: chrome/browser/safe_browsing/client_side_detection_service.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 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 | 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 #include "chrome/browser/safe_browsing/client_side_detection_service.h" 5 #include "chrome/browser/safe_browsing/client_side_detection_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/file_util_proxy.h" 8 #include "base/file_util_proxy.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/stl_util-inl.h" 14 #include "base/stl_util.h"
15 #include "base/task.h" 15 #include "base/task.h"
16 #include "base/time.h" 16 #include "base/time.h"
17 #include "chrome/common/net/http_return.h" 17 #include "chrome/common/net/http_return.h"
18 #include "chrome/common/safe_browsing/client_model.pb.h" 18 #include "chrome/common/safe_browsing/client_model.pb.h"
19 #include "chrome/common/safe_browsing/csd.pb.h" 19 #include "chrome/common/safe_browsing/csd.pb.h"
20 #include "chrome/common/safe_browsing/safebrowsing_messages.h" 20 #include "chrome/common/safe_browsing/safebrowsing_messages.h"
21 #include "content/browser/browser_thread.h" 21 #include "content/browser/browser_thread.h"
22 #include "content/browser/renderer_host/render_process_host.h" 22 #include "content/browser/renderer_host/render_process_host.h"
23 #include "content/common/notification_service.h" 23 #include "content/common/notification_service.h"
24 #include "content/common/url_fetcher.h" 24 #include "content/common/url_fetcher.h"
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 // |size| bits sets to one. 464 // |size| bits sets to one.
465 std::string mask(net::kIPv6AddressSize, '\x00'); 465 std::string mask(net::kIPv6AddressSize, '\x00');
466 mask.replace(0, size / 8, size / 8, '\xFF'); 466 mask.replace(0, size / 8, size / 8, '\xFF');
467 if (size % 8) { 467 if (size % 8) {
468 mask[size / 8] = 0xFF << (8 - (size % 8)); 468 mask[size / 8] = 0xFF << (8 - (size % 8));
469 } 469 }
470 (*bad_subnets)[mask].insert(model.bad_subnet(i).prefix()); 470 (*bad_subnets)[mask].insert(model.bad_subnet(i).prefix());
471 } 471 }
472 } 472 }
473 } // namespace safe_browsing 473 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698