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

Side by Side Diff: content/browser/fileapi/mock_url_request_delegate.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H 5 #ifndef CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H
6 #define CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H 6 #define CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H
7 7
8 #include "net/url_request/url_request.h" 8 #include "net/url_request/url_request.h"
9 9
10 namespace net { 10 namespace net {
11 class IOBuffer; 11 class IOBuffer;
12 } 12 }
13 13
14 namespace content { 14 namespace content {
15 15
16 // A URL request delegate that receives the response body. 16 // A URL request delegate that receives the response body.
17 class MockURLRequestDelegate : public net::URLRequest::Delegate { 17 class MockURLRequestDelegate : public net::URLRequest::Delegate {
18 public: 18 public:
19 MockURLRequestDelegate(); 19 MockURLRequestDelegate();
20 virtual ~MockURLRequestDelegate(); 20 ~MockURLRequestDelegate() override;
21 21
22 virtual void OnResponseStarted(net::URLRequest* request) override; 22 void OnResponseStarted(net::URLRequest* request) override;
23 virtual void OnReadCompleted(net::URLRequest* request, 23 void OnReadCompleted(net::URLRequest* request, int bytes_read) override;
24 int bytes_read) override;
25 const std::string& response_data() const { return response_data_; } 24 const std::string& response_data() const { return response_data_; }
26 25
27 private: 26 private:
28 void ReadSome(net::URLRequest* request); 27 void ReadSome(net::URLRequest* request);
29 void ReceiveData(net::URLRequest* request, int bytes_read); 28 void ReceiveData(net::URLRequest* request, int bytes_read);
30 void RequestComplete(); 29 void RequestComplete();
31 30
32 scoped_refptr<net::IOBuffer> io_buffer_; 31 scoped_refptr<net::IOBuffer> io_buffer_;
33 std::string response_data_; 32 std::string response_data_;
34 }; 33 };
35 34
36 } // namespace content 35 } // namespace content
37 36
38 #endif // CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H 37 #endif // CONTENT_BROWSER_FILEAPI_MOCK_URL_REQUEST_DELEGATE_H
OLDNEW
« no previous file with comments | « content/browser/fileapi/mock_file_update_observer.h ('k') | content/browser/fileapi/recursive_operation_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698