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

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

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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_SYNC_RESOURCE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 11 #include "chrome/browser/renderer_host/resource_dispatcher_host.h"
12 #include "chrome/browser/renderer_host/resource_handler.h" 12 #include "chrome/browser/renderer_host/resource_handler.h"
13 #include "chrome/common/resource_response.h" 13 #include "chrome/common/resource_response.h"
14 14
15 namespace net { 15 namespace net {
16 class IOBuffer; 16 class IOBuffer;
17 } 17 }
18 18
19 // Used to complete a synchronous resource request in response to resource load 19 // Used to complete a synchronous resource request in response to resource load
20 // events from the resource dispatcher host. 20 // events from the resource dispatcher host.
21 class SyncResourceHandler : public ResourceHandler { 21 class SyncResourceHandler : public ResourceHandler {
22 public: 22 public:
23 SyncResourceHandler(ResourceDispatcherHost::Receiver* receiver, 23 SyncResourceHandler(ResourceDispatcherHost::Receiver* receiver,
24 int process_id, 24 int process_id,
25 const GURL& url, 25 const GURL& url,
26 IPC::Message* result_message, 26 IPC::Message* result_message,
27 ResourceDispatcherHost* resource_dispatcher_host); 27 ResourceDispatcherHost* resource_dispatcher_host);
28 28
29 bool OnUploadProgress(int request_id, uint64 position, uint64 size); 29 virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size);
30 bool OnRequestRedirected(int request_id, const GURL& new_url, 30 virtual bool OnRequestRedirected(int request_id, const GURL& new_url,
31 ResourceResponse* response, bool* defer); 31 ResourceResponse* response, bool* defer);
32 bool OnResponseStarted(int request_id, ResourceResponse* response); 32 virtual bool OnResponseStarted(int request_id, ResourceResponse* response);
33 bool OnWillStart(int request_id, const GURL& url, bool* defer); 33 virtual bool OnWillStart(int request_id, const GURL& url, bool* defer);
34 bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, 34 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size,
35 int min_size); 35 int min_size);
36 bool OnReadCompleted(int request_id, int* bytes_read); 36 virtual bool OnReadCompleted(int request_id, int* bytes_read);
37 bool OnResponseCompleted(int request_id, 37 virtual bool OnResponseCompleted(int request_id,
38 const URLRequestStatus& status, 38 const URLRequestStatus& status,
39 const std::string& security_info); 39 const std::string& security_info);
40 void OnRequestClosed(); 40 virtual void OnRequestClosed();
41 41
42 private: 42 private:
43 enum { kReadBufSize = 3840 }; 43 enum { kReadBufSize = 3840 };
44 44
45 ~SyncResourceHandler(); 45 ~SyncResourceHandler();
46 46
47 scoped_refptr<net::IOBuffer> read_buffer_; 47 scoped_refptr<net::IOBuffer> read_buffer_;
48 48
49 SyncLoadResult result_; 49 SyncLoadResult result_;
50 ResourceDispatcherHost::Receiver* receiver_; 50 ResourceDispatcherHost::Receiver* receiver_;
51 int process_id_; 51 int process_id_;
52 IPC::Message* result_message_; 52 IPC::Message* result_message_;
53 ResourceDispatcherHost* rdh_; 53 ResourceDispatcherHost* rdh_;
54 }; 54 };
55 55
56 #endif // CHROME_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 56 #endif // CHROME_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/site_instance.h ('k') | chrome/browser/renderer_host/x509_user_cert_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698