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

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

Issue 398903002: Plumb redirect info out of net, through content, and into child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: darin comments Created 6 years, 4 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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_DETACHABLE_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_
6 #define CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 bool is_detached() const { return next_handler_ == NULL; } 42 bool is_detached() const { return next_handler_ == NULL; }
43 void Detach(); 43 void Detach();
44 44
45 void set_cancel_delay(base::TimeDelta cancel_delay) { 45 void set_cancel_delay(base::TimeDelta cancel_delay) {
46 cancel_delay_ = cancel_delay; 46 cancel_delay_ = cancel_delay;
47 } 47 }
48 48
49 // ResourceHandler implementation: 49 // ResourceHandler implementation:
50 virtual void SetController(ResourceController* controller) OVERRIDE; 50 virtual void SetController(ResourceController* controller) OVERRIDE;
51 virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE; 51 virtual bool OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
52 virtual bool OnRequestRedirected(const GURL& url, 52 virtual bool OnRequestRedirected(const net::RedirectInfo& redirect_info,
53 ResourceResponse* response, 53 ResourceResponse* response,
54 bool* defer) OVERRIDE; 54 bool* defer) OVERRIDE;
55 virtual bool OnResponseStarted(ResourceResponse* response, 55 virtual bool OnResponseStarted(ResourceResponse* response,
56 bool* defer) OVERRIDE; 56 bool* defer) OVERRIDE;
57 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE; 57 virtual bool OnWillStart(const GURL& url, bool* defer) OVERRIDE;
58 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE; 58 virtual bool OnBeforeNetworkStart(const GURL& url, bool* defer) OVERRIDE;
59 virtual bool OnWillRead(scoped_refptr<net::IOBuffer>* buf, 59 virtual bool OnWillRead(scoped_refptr<net::IOBuffer>* buf,
60 int* buf_size, 60 int* buf_size,
61 int min_size) OVERRIDE; 61 int min_size) OVERRIDE;
62 virtual bool OnReadCompleted(int bytes_read, bool* defer) OVERRIDE; 62 virtual bool OnReadCompleted(int bytes_read, bool* defer) OVERRIDE;
(...skipping 17 matching lines...) Expand all
80 80
81 bool is_deferred_; 81 bool is_deferred_;
82 bool is_finished_; 82 bool is_finished_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler); 84 DISALLOW_COPY_AND_ASSIGN(DetachableResourceHandler);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_ 89 #endif // CONTENT_BROWSER_LOADER_DETACHABLE_RESOURCE_HANDLER_H_
OLDNEW
« no previous file with comments | « content/browser/loader/cross_site_resource_handler.cc ('k') | content/browser/loader/detachable_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698