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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h

Issue 10827103: Speculative resource prefetching - fixing missing navigations due to server side redirects. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing James's comments. Created 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 int child_id, 74 int child_id,
75 int route_id) OVERRIDE; 75 int route_id) OVERRIDE;
76 virtual bool ShouldForceDownloadResource( 76 virtual bool ShouldForceDownloadResource(
77 const GURL& url, const std::string& mime_type) OVERRIDE; 77 const GURL& url, const std::string& mime_type) OVERRIDE;
78 virtual void OnResponseStarted( 78 virtual void OnResponseStarted(
79 net::URLRequest* request, 79 net::URLRequest* request,
80 content::ResourceContext* resource_context, 80 content::ResourceContext* resource_context,
81 content::ResourceResponse* response, 81 content::ResourceResponse* response,
82 IPC::Sender* sender) OVERRIDE; 82 IPC::Sender* sender) OVERRIDE;
83 virtual void OnRequestRedirected( 83 virtual void OnRequestRedirected(
84 const GURL& redirect_url,
84 net::URLRequest* request, 85 net::URLRequest* request,
85 content::ResourceContext* resource_context, 86 content::ResourceContext* resource_context,
86 content::ResourceResponse* response) OVERRIDE; 87 content::ResourceResponse* response) OVERRIDE;
87 88
88 // base::FieldTrialList::Observer implementation. 89 // base::FieldTrialList::Observer implementation.
89 // This will add the variation ID associated with |trial_name| and 90 // This will add the variation ID associated with |trial_name| and
90 // |group_name| to the variation ID cache. 91 // |group_name| to the variation ID cache.
91 virtual void OnFieldTrialGroupFinalized( 92 virtual void OnFieldTrialGroupFinalized(
92 const std::string& trial_name, 93 const std::string& trial_name,
93 const std::string& group_name) OVERRIDE; 94 const std::string& group_name) OVERRIDE;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // This consists of a list of valid IDs, and the actual transmitted header. 131 // This consists of a list of valid IDs, and the actual transmitted header.
131 // Note that since this cache is both initialized and accessed from the IO 132 // Note that since this cache is both initialized and accessed from the IO
132 // thread, we do not need to synchronize its uses. 133 // thread, we do not need to synchronize its uses.
133 std::set<chrome_variations::VariationID> variation_ids_set_; 134 std::set<chrome_variations::VariationID> variation_ids_set_;
134 std::string variation_ids_header_; 135 std::string variation_ids_header_;
135 136
136 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 137 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
137 }; 138 };
138 139
139 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 140 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698