OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_DUMMY_RESOURCE_HANDLER_H_ | |
6 #define CONTENT_BROWSER_RENDERER_HOST_DUMMY_RESOURCE_HANDLER_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 #include "base/compiler_specific.h" | |
12 #include "content/browser/renderer_host/resource_handler.h" | |
13 | |
14 namespace content { | |
15 | |
16 class DummyResourceHandler : public ResourceHandler { | |
17 public: | |
18 DummyResourceHandler(); | |
19 | |
20 virtual bool OnUploadProgress(int request_id, uint64 position, uint64 size) | |
21 OVERRIDE; | |
22 virtual bool OnRequestRedirected(int request_id, | |
23 const GURL& url, | |
24 ResourceResponse* response, | |
25 bool* defer) OVERRIDE; | |
26 virtual bool OnResponseStarted(int request_id, ResourceResponse* response) | |
27 OVERRIDE; | |
28 virtual bool OnWillStart(int request_id, const GURL& url, bool* defer) | |
29 OVERRIDE; | |
30 virtual bool OnWillRead(int request_id, | |
31 net::IOBuffer** buf, | |
32 int* buf_size, | |
33 int min_size) OVERRIDE; | |
34 virtual bool OnReadCompleted(int request_id, int* bytes_read) OVERRIDE; | |
35 virtual bool OnResponseCompleted(int request_id, | |
36 const net::URLRequestStatus& status, | |
37 const std::string& info) OVERRIDE; | |
38 virtual void OnRequestClosed() OVERRIDE; | |
39 | |
40 private: | |
41 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler); | |
42 }; | |
43 | |
44 } // namespace content | |
45 | |
46 #endif // CONTENT_BROWSER_RENDERER_HOST_DUMMY_RESOURCE_HANDLER_H_ | |
OLD | NEW |