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

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

Issue 667943003: Standardize usage of virtual/override/final in content/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_LOADER_SYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/browser/loader/resource_handler.h" 10 #include "content/browser/loader/resource_handler.h"
(...skipping 13 matching lines...) Expand all
24 class ResourceDispatcherHostImpl; 24 class ResourceDispatcherHostImpl;
25 class ResourceMessageFilter; 25 class ResourceMessageFilter;
26 26
27 // Used to complete a synchronous resource request in response to resource load 27 // Used to complete a synchronous resource request in response to resource load
28 // events from the resource dispatcher host. 28 // events from the resource dispatcher host.
29 class SyncResourceHandler : public ResourceHandler { 29 class SyncResourceHandler : public ResourceHandler {
30 public: 30 public:
31 SyncResourceHandler(net::URLRequest* request, 31 SyncResourceHandler(net::URLRequest* request,
32 IPC::Message* result_message, 32 IPC::Message* result_message,
33 ResourceDispatcherHostImpl* resource_dispatcher_host); 33 ResourceDispatcherHostImpl* resource_dispatcher_host);
34 virtual ~SyncResourceHandler(); 34 ~SyncResourceHandler() override;
35 35
36 virtual bool OnUploadProgress(uint64 position, uint64 size) override; 36 bool OnUploadProgress(uint64 position, uint64 size) override;
37 virtual bool OnRequestRedirected(const net::RedirectInfo& redirect_info, 37 bool OnRequestRedirected(const net::RedirectInfo& redirect_info,
38 ResourceResponse* response, 38 ResourceResponse* response,
39 bool* defer) override; 39 bool* defer) override;
40 virtual bool OnResponseStarted(ResourceResponse* response, 40 bool OnResponseStarted(ResourceResponse* response, bool* defer) override;
41 bool* defer) override; 41 bool OnWillStart(const GURL& url, bool* defer) override;
42 virtual bool OnWillStart(const GURL& url, bool* defer) override; 42 bool OnBeforeNetworkStart(const GURL& url, bool* defer) override;
43 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) override; 43 bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
44 virtual bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 44 int* buf_size,
45 int* buf_size, 45 int min_size) override;
46 int min_size) override; 46 bool OnReadCompleted(int bytes_read, bool* defer) override;
47 virtual bool OnReadCompleted(int bytes_read, bool* defer) override; 47 void OnResponseCompleted(const net::URLRequestStatus& status,
48 virtual void OnResponseCompleted(const net::URLRequestStatus& status, 48 const std::string& security_info,
49 const std::string& security_info, 49 bool* defer) override;
50 bool* defer) override; 50 void OnDataDownloaded(int bytes_downloaded) override;
51 virtual void OnDataDownloaded(int bytes_downloaded) override;
52 51
53 private: 52 private:
54 enum { kReadBufSize = 3840 }; 53 enum { kReadBufSize = 3840 };
55 54
56 scoped_refptr<net::IOBuffer> read_buffer_; 55 scoped_refptr<net::IOBuffer> read_buffer_;
57 56
58 SyncLoadResult result_; 57 SyncLoadResult result_;
59 IPC::Message* result_message_; 58 IPC::Message* result_message_;
60 ResourceDispatcherHostImpl* rdh_; 59 ResourceDispatcherHostImpl* rdh_;
61 int64 total_transfer_size_; 60 int64 total_transfer_size_;
62 }; 61 };
63 62
64 } // namespace content 63 } // namespace content
65 64
66 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_ 65 #endif // CONTENT_BROWSER_LOADER_SYNC_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/stream_writer.h ('k') | content/browser/loader/throttling_resource_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698