| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 bool OnRequestRedirected(int request_id, const GURL& new_url, | 54 bool OnRequestRedirected(int request_id, const GURL& new_url, |
| 55 ResourceResponse* response, bool* defer); | 55 ResourceResponse* response, bool* defer); |
| 56 bool OnResponseStarted(int request_id, ResourceResponse* response); | 56 bool OnResponseStarted(int request_id, ResourceResponse* response); |
| 57 bool OnWillStart(int request_id, const GURL& url, bool* defer); | 57 bool OnWillStart(int request_id, const GURL& url, bool* defer); |
| 58 bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, | 58 bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, |
| 59 int min_size); | 59 int min_size); |
| 60 bool OnReadCompleted(int request_id, int* bytes_read); | 60 bool OnReadCompleted(int request_id, int* bytes_read); |
| 61 bool OnResponseCompleted(int request_id, | 61 bool OnResponseCompleted(int request_id, |
| 62 const URLRequestStatus& status, | 62 const URLRequestStatus& status, |
| 63 const std::string& security_info); | 63 const std::string& security_info); |
| 64 virtual void OnRequestClosed(); |
| 64 | 65 |
| 65 // SafeBrowsingService::Client implementation, called on the IO thread once | 66 // SafeBrowsingService::Client implementation, called on the IO thread once |
| 66 // the URL has been classified. | 67 // the URL has been classified. |
| 67 void OnUrlCheckResult(const GURL& url, | 68 void OnUrlCheckResult(const GURL& url, |
| 68 SafeBrowsingService::UrlCheckResult result); | 69 SafeBrowsingService::UrlCheckResult result); |
| 69 | 70 |
| 70 // SafeBrowsingService::Client implementation, called on the IO thread when | 71 // SafeBrowsingService::Client implementation, called on the IO thread when |
| 71 // the user has decided to proceed with the current request, or go back. | 72 // the user has decided to proceed with the current request, or go back. |
| 72 void OnBlockingPageComplete(bool proceed); | 73 void OnBlockingPageComplete(bool proceed); |
| 73 | 74 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 int render_view_id_; | 146 int render_view_id_; |
| 146 scoped_refptr<SafeBrowsingService> safe_browsing_; | 147 scoped_refptr<SafeBrowsingService> safe_browsing_; |
| 147 ResourceDispatcherHost* rdh_; | 148 ResourceDispatcherHost* rdh_; |
| 148 ResourceType::Type resource_type_; | 149 ResourceType::Type resource_type_; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceHandler); | 151 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceHandler); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 | 154 |
| 154 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ | 155 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ |
| OLD | NEW |