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

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

Issue 6056007: net: Add namespace net to the remaining files under url_request directory. (Closed)
Patch Set: chromeos fixes Created 9 years, 11 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) 2006-2008 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_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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // ResourceHandler implementation: 51 // ResourceHandler implementation:
52 virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size); 52 virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
53 virtual bool OnRequestRedirected(int request_id, const GURL& new_url, 53 virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
54 ResourceResponse* response, bool* defer); 54 ResourceResponse* response, bool* defer);
55 virtual bool OnResponseStarted(int request_id, ResourceResponse* response); 55 virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
56 virtual bool OnWillStart(int request_id, const GURL& url, bool* defer); 56 virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
57 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, 57 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
58 int min_size); 58 int min_size);
59 virtual bool OnReadCompleted(int request_id, int* bytes_read); 59 virtual bool OnReadCompleted(int request_id, int* bytes_read);
60 virtual bool OnResponseCompleted(int request_id, 60 virtual bool OnResponseCompleted(int request_id,
61 const URLRequestStatus& status, 61 const net::URLRequestStatus& status,
62 const std::string& security_info); 62 const std::string& security_info);
63 virtual void OnRequestClosed(); 63 virtual void OnRequestClosed();
64 64
65 // SafeBrowsingService::Client implementation, called on the IO thread once 65 // SafeBrowsingService::Client implementation, called on the IO thread once
66 // the URL has been classified. 66 // the URL has been classified.
67 virtual void OnBrowseUrlCheckResult( 67 virtual void OnBrowseUrlCheckResult(
68 const GURL& url, SafeBrowsingService::UrlCheckResult result); 68 const GURL& url, SafeBrowsingService::UrlCheckResult result);
69 69
70 // SafeBrowsingService::Client implementation, called on the IO thread when 70 // SafeBrowsingService::Client implementation, called on the IO thread when
71 // the user has decided to proceed with the current request, or go back. 71 // the user has decided to proceed with the current request, or go back.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 int render_view_id_; 142 int render_view_id_;
143 scoped_refptr<SafeBrowsingService> safe_browsing_; 143 scoped_refptr<SafeBrowsingService> safe_browsing_;
144 ResourceDispatcherHost* rdh_; 144 ResourceDispatcherHost* rdh_;
145 ResourceType::Type resource_type_; 145 ResourceType::Type resource_type_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceHandler); 147 DISALLOW_COPY_AND_ASSIGN(SafeBrowsingResourceHandler);
148 }; 148 };
149 149
150 150
151 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_ 151 #endif // CHROME_BROWSER_RENDERER_HOST_SAFE_BROWSING_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_request_details.h ('k') | chrome/browser/renderer_host/save_file_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698