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

Side by Side Diff: content/public/browser/resource_dispatcher_host_delegate.h

Issue 8669014: Fix a bug where redirect chain gets lost on process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: conditional disabling Created 9 years 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/renderer/navigation_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // Called after ShouldBeginRequest when all the resource handlers from the 46 // Called after ShouldBeginRequest when all the resource handlers from the
47 // content layer have been added. To add new handlers to the front, return 47 // content layer have been added. To add new handlers to the front, return
48 // a new handler that is chained to the given one, otherwise just reutrn the 48 // a new handler that is chained to the given one, otherwise just reutrn the
49 // given handler. 49 // given handler.
50 virtual ResourceHandler* RequestBeginning( 50 virtual ResourceHandler* RequestBeginning(
51 ResourceHandler* handler, 51 ResourceHandler* handler,
52 net::URLRequest* request, 52 net::URLRequest* request,
53 const content::ResourceContext& resource_context, 53 const content::ResourceContext& resource_context,
54 bool is_subresource, 54 bool is_subresource,
55 int child_id, 55 int child_id,
56 int route_id) = 0; 56 int route_id,
57 bool is_continuation_of_transferred_request) = 0;
57 58
58 // Allows an embedder to add additional resource handlers for a download. 59 // Allows an embedder to add additional resource handlers for a download.
59 // |is_new_request| is true if this is a request that is just starting, i.e. 60 // |is_new_request| is true if this is a request that is just starting, i.e.
60 // the content layer has just added its own resource handlers; it's false if 61 // the content layer has just added its own resource handlers; it's false if
61 // this was originally a non-download request that had some resource handlers 62 // this was originally a non-download request that had some resource handlers
62 // applied already and now we found out it's a download. 63 // applied already and now we found out it's a download.
63 // |in_complete| is true if this is invoked from |OnResponseCompleted|. 64 // |in_complete| is true if this is invoked from |OnResponseCompleted|.
64 virtual ResourceHandler* DownloadStarting( 65 virtual ResourceHandler* DownloadStarting(
65 ResourceHandler* handler, 66 ResourceHandler* handler,
66 const content::ResourceContext& resource_context, 67 const content::ResourceContext& resource_context,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 ResourceMessageFilter* filter) = 0; 121 ResourceMessageFilter* filter) = 0;
121 122
122 protected: 123 protected:
123 ResourceDispatcherHostDelegate() {} 124 ResourceDispatcherHostDelegate() {}
124 virtual ~ResourceDispatcherHostDelegate() {} 125 virtual ~ResourceDispatcherHostDelegate() {}
125 }; 126 };
126 127
127 } // namespace content 128 } // namespace content
128 129
129 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 130 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/renderer/navigation_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698