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

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

Issue 8587009: Add OVERRIDE to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 1 month 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) 2011 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 CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // Used to complete a synchronous resource request in response to resource load 25 // Used to complete a synchronous resource request in response to resource load
26 // events from the resource dispatcher host. 26 // events from the resource dispatcher host.
27 class SyncResourceHandler : public ResourceHandler { 27 class SyncResourceHandler : public ResourceHandler {
28 public: 28 public:
29 SyncResourceHandler(ResourceMessageFilter* filter, 29 SyncResourceHandler(ResourceMessageFilter* filter,
30 const GURL& url, 30 const GURL& url,
31 IPC::Message* result_message, 31 IPC::Message* result_message,
32 ResourceDispatcherHost* resource_dispatcher_host); 32 ResourceDispatcherHost* resource_dispatcher_host);
33 33
34 virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size); 34 virtual bool OnUploadProgress(int request_id,
35 virtual bool OnRequestRedirected(int request_id, const GURL& new_url, 35 uint64 position,
36 ResourceResponse* response, bool* defer); 36 uint64 size) OVERRIDE;
37 virtual bool OnResponseStarted(int request_id, ResourceResponse* response); 37 virtual bool OnRequestRedirected(int request_id,
38 virtual bool OnWillStart(int request_id, const GURL& url, bool* defer); 38 const GURL& new_url,
39 virtual bool OnWillRead(int request_id, net::IOBuffer** buf, int* buf_size, 39 ResourceResponse* response,
40 int min_size); 40 bool* defer) OVERRIDE;
41 virtual bool OnReadCompleted(int request_id, int* bytes_read); 41 virtual bool OnResponseStarted(int request_id,
42 ResourceResponse* response) OVERRIDE;
43 virtual bool OnWillStart(int request_id,
44 const GURL& url,
45 bool* defer) OVERRIDE;
46 virtual bool OnWillRead(int request_id,
47 net::IOBuffer** buf,
48 int* buf_size,
49 int min_size) OVERRIDE;
50 virtual bool OnReadCompleted(int request_id,
51 int* bytes_read) OVERRIDE;
42 virtual bool OnResponseCompleted(int request_id, 52 virtual bool OnResponseCompleted(int request_id,
43 const net::URLRequestStatus& status, 53 const net::URLRequestStatus& status,
44 const std::string& security_info); 54 const std::string& security_info) OVERRIDE;
45 virtual void OnRequestClosed(); 55 virtual void OnRequestClosed() OVERRIDE;
46 56
47 private: 57 private:
48 enum { kReadBufSize = 3840 }; 58 enum { kReadBufSize = 3840 };
49 59
50 virtual ~SyncResourceHandler(); 60 virtual ~SyncResourceHandler();
51 61
52 scoped_refptr<net::IOBuffer> read_buffer_; 62 scoped_refptr<net::IOBuffer> read_buffer_;
53 63
54 SyncLoadResult result_; 64 SyncLoadResult result_;
55 ResourceMessageFilter* filter_; 65 ResourceMessageFilter* filter_;
56 IPC::Message* result_message_; 66 IPC::Message* result_message_;
57 ResourceDispatcherHost* rdh_; 67 ResourceDispatcherHost* rdh_;
58 }; 68 };
59 69
60 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_ 70 #endif // CONTENT_BROWSER_RENDERER_HOST_SYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/socket_stream_dispatcher_host.h ('k') | content/browser/renderer_host/test_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698