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

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

Issue 370833002: Move resource_type.* from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chromeos fix Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_host.h" 5 #include "chrome/browser/safe_browsing/client_side_detection_host.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 22 matching lines...) Expand all
33 #include "content/public/browser/render_view_host.h" 33 #include "content/public/browser/render_view_host.h"
34 #include "content/public/browser/resource_request_details.h" 34 #include "content/public/browser/resource_request_details.h"
35 #include "content/public/browser/web_contents.h" 35 #include "content/public/browser/web_contents.h"
36 #include "content/public/common/frame_navigate_params.h" 36 #include "content/public/common/frame_navigate_params.h"
37 #include "content/public/common/url_constants.h" 37 #include "content/public/common/url_constants.h"
38 #include "url/gurl.h" 38 #include "url/gurl.h"
39 39
40 using content::BrowserThread; 40 using content::BrowserThread;
41 using content::NavigationEntry; 41 using content::NavigationEntry;
42 using content::ResourceRequestDetails; 42 using content::ResourceRequestDetails;
43 using content::ResourceType;
43 using content::WebContents; 44 using content::WebContents;
44 45
45 namespace safe_browsing { 46 namespace safe_browsing {
46 47
47 const size_t ClientSideDetectionHost::kMaxUrlsPerIP = 20; 48 const size_t ClientSideDetectionHost::kMaxUrlsPerIP = 20;
48 const size_t ClientSideDetectionHost::kMaxIPsPerBrowse = 200; 49 const size_t ClientSideDetectionHost::kMaxIPsPerBrowse = 200;
49 50
50 const char kSafeBrowsingMatchKey[] = "safe_browsing_match"; 51 const char kSafeBrowsingMatchKey[] = "safe_browsing_match";
51 52
52 typedef base::Callback<void(bool)> ShouldClassifyUrlCallback; 53 typedef base::Callback<void(bool)> ShouldClassifyUrlCallback;
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 ui_manager_->RemoveObserver(this); 738 ui_manager_->RemoveObserver(this);
738 739
739 ui_manager_ = ui_manager; 740 ui_manager_ = ui_manager;
740 if (ui_manager) 741 if (ui_manager)
741 ui_manager_->AddObserver(this); 742 ui_manager_->AddObserver(this);
742 743
743 database_manager_ = database_manager; 744 database_manager_ = database_manager;
744 } 745 }
745 746
746 } // namespace safe_browsing 747 } // namespace safe_browsing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698