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

Side by Side Diff: chrome/browser/renderer_host/safe_browsing_resource_throttle.h

Issue 893843003: Add RedirectInfo as a redirect parameter to ResourceThrottles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document ResourceThrottle Created 5 years, 10 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
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 #ifndef CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 : public content::ResourceThrottle, 48 : public content::ResourceThrottle,
49 public SafeBrowsingDatabaseManager::Client, 49 public SafeBrowsingDatabaseManager::Client,
50 public base::SupportsWeakPtr<SafeBrowsingResourceThrottle> { 50 public base::SupportsWeakPtr<SafeBrowsingResourceThrottle> {
51 public: 51 public:
52 SafeBrowsingResourceThrottle(const net::URLRequest* request, 52 SafeBrowsingResourceThrottle(const net::URLRequest* request,
53 content::ResourceType resource_type, 53 content::ResourceType resource_type,
54 SafeBrowsingService* safe_browsing); 54 SafeBrowsingService* safe_browsing);
55 55
56 // content::ResourceThrottle implementation (called on IO thread): 56 // content::ResourceThrottle implementation (called on IO thread):
57 void WillStartRequest(bool* defer) override; 57 void WillStartRequest(bool* defer) override;
58 void WillRedirectRequest(const GURL& new_url, bool* defer) override; 58 void WillRedirectRequest(const net::RedirectInfo& redirect_info,
59 bool* defer) override;
59 const char* GetNameForLogging() const override; 60 const char* GetNameForLogging() const override;
60 61
61 // SafeBrowsingDabaseManager::Client implementation (called on IO thread): 62 // SafeBrowsingDabaseManager::Client implementation (called on IO thread):
62 void OnCheckBrowseUrlResult(const GURL& url, 63 void OnCheckBrowseUrlResult(const GURL& url,
63 SBThreatType result, 64 SBThreatType result,
64 const std::string& metadata) override; 65 const std::string& metadata) override;
65 66
66 private: 67 private:
67 // Describes what phase of the check a throttle is in. 68 // Describes what phase of the check a throttle is in.
68 enum State { 69 enum State {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 scoped_refptr<SafeBrowsingUIManager> ui_manager_; 130 scoped_refptr<SafeBrowsingUIManager> ui_manager_;
130 const net::URLRequest* request_; 131 const net::URLRequest* request_;
131 const bool is_subresource_; 132 const bool is_subresource_;
132 const bool is_subframe_; 133 const bool is_subframe_;
133 134
134 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle); 135 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceThrottle);
135 }; 136 };
136 137
137 138
138 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_ 139 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_THROTTLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698