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

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

Issue 9580002: Add ResourceRequestInfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/cross_site_resource_handler.cc ('k') | content/browser/renderer_host/dummy_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698