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

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

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolving conflicts. Created 8 years, 6 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 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 int route_id); 97 int route_id);
98 98
99 // Returns true if we should force the given resource to be downloaded. 99 // Returns true if we should force the given resource to be downloaded.
100 // Otherwise, the content layer decides. 100 // Otherwise, the content layer decides.
101 virtual bool ShouldForceDownloadResource( 101 virtual bool ShouldForceDownloadResource(
102 const GURL& url, const std::string& mime_type); 102 const GURL& url, const std::string& mime_type);
103 103
104 // Informs the delegate that a response has started. 104 // Informs the delegate that a response has started.
105 virtual void OnResponseStarted( 105 virtual void OnResponseStarted(
106 net::URLRequest* request, 106 net::URLRequest* request,
107 ResourceContext* resource_context,
107 ResourceResponse* response, 108 ResourceResponse* response,
108 IPC::Sender* sender); 109 IPC::Sender* sender);
109 110
110 // Informs the delegate that a request has been redirected. 111 // Informs the delegate that a request has been redirected.
111 virtual void OnRequestRedirected( 112 virtual void OnRequestRedirected(
112 net::URLRequest* request, 113 net::URLRequest* request,
114 ResourceContext* resource_context,
113 ResourceResponse* response); 115 ResourceResponse* response);
114 116
115 protected: 117 protected:
116 ResourceDispatcherHostDelegate(); 118 ResourceDispatcherHostDelegate();
117 virtual ~ResourceDispatcherHostDelegate(); 119 virtual ~ResourceDispatcherHostDelegate();
118 }; 120 };
119 121
120 } // namespace content 122 } // namespace content
121 123
122 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_ 124 #endif // CONTENT_PUBLIC_BROWSER_RESOURCE_DISPATCHER_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/sync_resource_handler.cc ('k') | content/public/browser/resource_dispatcher_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698