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

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

Issue 953793003: Ensuring interception of stream get determined by plugin path before checking mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 <set> 9 #include <set>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool must_download, 58 bool must_download,
59 ScopedVector<content::ResourceThrottle>* throttles) override; 59 ScopedVector<content::ResourceThrottle>* throttles) override;
60 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( 60 content::ResourceDispatcherHostLoginDelegate* CreateLoginDelegate(
61 net::AuthChallengeInfo* auth_info, 61 net::AuthChallengeInfo* auth_info,
62 net::URLRequest* request) override; 62 net::URLRequest* request) override;
63 bool HandleExternalProtocol(const GURL& url, 63 bool HandleExternalProtocol(const GURL& url,
64 int child_id, 64 int child_id,
65 int route_id) override; 65 int route_id) override;
66 bool ShouldForceDownloadResource(const GURL& url, 66 bool ShouldForceDownloadResource(const GURL& url,
67 const std::string& mime_type) override; 67 const std::string& mime_type) override;
68 bool ShouldInterceptResourceAsStream(net::URLRequest* request, 68 bool ShouldInterceptResourceAsStream(const base::FilePath& file_path,
69 net::URLRequest* request,
69 const std::string& mime_type, 70 const std::string& mime_type,
70 GURL* origin, 71 GURL* origin,
71 std::string* payload) override; 72 std::string* payload) override;
72 void OnStreamCreated(net::URLRequest* request, 73 void OnStreamCreated(net::URLRequest* request,
73 scoped_ptr<content::StreamInfo> stream) override; 74 scoped_ptr<content::StreamInfo> stream) override;
74 void OnResponseStarted(net::URLRequest* request, 75 void OnResponseStarted(net::URLRequest* request,
75 content::ResourceContext* resource_context, 76 content::ResourceContext* resource_context,
76 content::ResourceResponse* response, 77 content::ResourceResponse* response,
77 IPC::Sender* sender) override; 78 IPC::Sender* sender) override;
78 void OnRequestRedirected(const GURL& redirect_url, 79 void OnRequestRedirected(const GURL& redirect_url,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 #if defined(ENABLE_EXTENSIONS) 114 #if defined(ENABLE_EXTENSIONS)
114 scoped_refptr<extensions::UserScriptListener> user_script_listener_; 115 scoped_refptr<extensions::UserScriptListener> user_script_listener_;
115 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_; 116 std::map<net::URLRequest*, StreamTargetInfo> stream_target_info_;
116 #endif 117 #endif
117 prerender::PrerenderTracker* prerender_tracker_; 118 prerender::PrerenderTracker* prerender_tracker_;
118 119
119 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate); 120 DISALLOW_COPY_AND_ASSIGN(ChromeResourceDispatcherHostDelegate);
120 }; 121 };
121 122
122 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_ 123 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_RESOURCE_DISPATCHER_HOST_DELEGATE _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698