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

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

Issue 7276: Adding security info to canceled requests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
OLDNEW
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_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/renderer_host/resource_handler.h" 10 #include "chrome/browser/renderer_host/resource_handler.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // ResourceHanlder implementation: 44 // ResourceHanlder implementation:
45 virtual bool OnUploadProgress(int request_id, 45 virtual bool OnUploadProgress(int request_id,
46 uint64 position, 46 uint64 position,
47 uint64 size); 47 uint64 size);
48 virtual bool OnRequestRedirected(int request_id, const GURL& url); 48 virtual bool OnRequestRedirected(int request_id, const GURL& url);
49 virtual bool OnResponseStarted(int request_id, ResourceResponse* response); 49 virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
50 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, 50 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
51 int min_size); 51 int min_size);
52 virtual bool OnReadCompleted(int request_id, int* bytes_read); 52 virtual bool OnReadCompleted(int request_id, int* bytes_read);
53 virtual bool OnResponseCompleted(int request_id, 53 virtual bool OnResponseCompleted(int request_id,
54 const URLRequestStatus& status); 54 const URLRequestStatus& status,
55 const std::string& security_info);
55 56
56 // DownloadRequestManager::Callback implementation: 57 // DownloadRequestManager::Callback implementation:
57 void CancelDownload(); 58 void CancelDownload();
58 void ContinueDownload(); 59 void ContinueDownload();
59 60
60 private: 61 private:
61 void CopyTmpBufferToDownloadHandler(); 62 void CopyTmpBufferToDownloadHandler();
62 63
63 ResourceDispatcherHost* host_; 64 ResourceDispatcherHost* host_;
64 URLRequest* request_; 65 URLRequest* request_;
(...skipping 18 matching lines...) Expand all
83 // If true the next call to OnReadCompleted is ignored. This is used if we're 84 // If true the next call to OnReadCompleted is ignored. This is used if we're
84 // paused during a call to OnReadCompleted. Pausing during OnReadCompleted 85 // paused during a call to OnReadCompleted. Pausing during OnReadCompleted
85 // results in two calls to OnReadCompleted for the same data. This make sure 86 // results in two calls to OnReadCompleted for the same data. This make sure
86 // we ignore one of them. 87 // we ignore one of them.
87 bool ignore_on_read_complete_; 88 bool ignore_on_read_complete_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(DownloadThrottlingResourceHandler); 90 DISALLOW_COPY_AND_ASSIGN(DownloadThrottlingResourceHandler);
90 }; 91 };
91 92
92 #endif // CHROME_BROWSER_RENDERER_HOST_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_ 93 #endif // CHROME_BROWSER_RENDERER_HOST_DOWNLOAD_THROTTLING_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698