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

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

Issue 2262183002: [NoStatePrefetch] Do not send responses to renderer in prefetch mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: comments Created 4 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 <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 ui::PageTransition page_transition, 73 ui::PageTransition page_transition,
74 bool has_user_gesture, 74 bool has_user_gesture,
75 content::ResourceContext* resource_context) override; 75 content::ResourceContext* resource_context) override;
76 bool ShouldForceDownloadResource(const GURL& url, 76 bool ShouldForceDownloadResource(const GURL& url,
77 const std::string& mime_type) override; 77 const std::string& mime_type) override;
78 bool ShouldInterceptResourceAsStream(net::URLRequest* request, 78 bool ShouldInterceptResourceAsStream(net::URLRequest* request,
79 const base::FilePath& plugin_path, 79 const base::FilePath& plugin_path,
80 const std::string& mime_type, 80 const std::string& mime_type,
81 GURL* origin, 81 GURL* origin,
82 std::string* payload) override; 82 std::string* payload) override;
83 bool ShouldSinkResponse(net::URLRequest* request,
84 content::ResourceType resource_type) override;
83 void OnStreamCreated(net::URLRequest* request, 85 void OnStreamCreated(net::URLRequest* request,
84 std::unique_ptr<content::StreamInfo> stream) override; 86 std::unique_ptr<content::StreamInfo> stream) override;
85 void OnResponseStarted(net::URLRequest* request, 87 void OnResponseStarted(net::URLRequest* request,
86 content::ResourceContext* resource_context, 88 content::ResourceContext* resource_context,
87 content::ResourceResponse* response) override; 89 content::ResourceResponse* response) override;
88 void OnRequestRedirected(const GURL& redirect_url, 90 void OnRequestRedirected(const GURL& redirect_url,
89 net::URLRequest* request, 91 net::URLRequest* request,
90 content::ResourceContext* resource_context, 92 content::ResourceContext* resource_context,
91 content::ResourceResponse* response) override; 93 content::ResourceResponse* response) override;
92 void RequestComplete(net::URLRequest* url_request) override; 94 void RequestComplete(net::URLRequest* url_request) override;
(...skipping 30 matching lines...) Expand all
123 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_; 125 scoped_refptr<safe_browsing::SafeBrowsingService> safe_browsing_;
124 #if defined(ENABLE_EXTENSIONS) 126 #if defined(ENABLE_EXTENSIONS)
125 scoped_refptr<extensions::UserScriptListener> user_script_listener_; 127 scoped_refptr<extensions::UserScriptListener> user_script_listener_;
126 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; 128 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_;
127 #endif 129 #endif
128 130
129 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 131 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
130 }; 132 };
131 133
132 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 134 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698