OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_STREAM_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/browser/loader/resource_handler.h" | 10 #include "content/browser/loader/resource_handler.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand | 27 // WebCore::BlobURL and and WebCore::SecurityOrigin in Blink to understand |
28 // how origin check is done on resource loading. | 28 // how origin check is done on resource loading. |
29 StreamResourceHandler(net::URLRequest* request, | 29 StreamResourceHandler(net::URLRequest* request, |
30 StreamRegistry* registry, | 30 StreamRegistry* registry, |
31 const GURL& origin); | 31 const GURL& origin); |
32 virtual ~StreamResourceHandler(); | 32 virtual ~StreamResourceHandler(); |
33 | 33 |
34 virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE; | 34 virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE; |
35 | 35 |
36 // Not needed, as this event handler ought to be the final resource. | 36 // Not needed, as this event handler ought to be the final resource. |
37 virtual bool OnRequestRedirected(const GURL& url, | 37 virtual bool OnRequestRedirected(const net::RedirectInfo& redirect_info, |
38 ResourceResponse* resp, | 38 ResourceResponse* resp, |
39 bool* defer) OVERRIDE; | 39 bool* defer) OVERRIDE; |
40 | 40 |
41 virtual bool OnResponseStarted(ResourceResponse* resp, | 41 virtual bool OnResponseStarted(ResourceResponse* resp, |
42 bool* defer) OVERRIDE; | 42 bool* defer) OVERRIDE; |
43 | 43 |
44 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE; | 44 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE; |
45 | 45 |
46 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE; | 46 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE; |
47 | 47 |
(...skipping 18 matching lines...) Expand all Loading... |
66 virtual void OnClose(Stream* stream) OVERRIDE; | 66 virtual void OnClose(Stream* stream) OVERRIDE; |
67 | 67 |
68 scoped_refptr<Stream> stream_; | 68 scoped_refptr<Stream> stream_; |
69 scoped_refptr<net::IOBuffer> read_buffer_; | 69 scoped_refptr<net::IOBuffer> read_buffer_; |
70 DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler); | 70 DISALLOW_COPY_AND_ASSIGN(StreamResourceHandler); |
71 }; | 71 }; |
72 | 72 |
73 } // namespace content | 73 } // namespace content |
74 | 74 |
75 #endif // CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ | 75 #endif // CONTENT_BROWSER_LOADER_STREAM_RESOURCE_HANDLER_H_ |
OLD | NEW |