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

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.h

Issue 263513004: Forward MIME types to BrowserPlugin when a viewer is specified. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review fixes Created 6 years, 7 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 | Annotate | Revision Log
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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and 6 // from the child process (i.e. [Renderer, Plugin, Worker]ProcessHost), and
7 // dispatches them to URLRequests. It then forwards the messages from the 7 // dispatches them to URLRequests. It then forwards the messages from the
8 // URLRequests back to the correct process for handling. 8 // URLRequests back to the correct process for handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 namespace webkit_blob { 52 namespace webkit_blob {
53 class ShareableFileReference; 53 class ShareableFileReference;
54 } 54 }
55 55
56 namespace content { 56 namespace content {
57 class ResourceContext; 57 class ResourceContext;
58 class ResourceDispatcherHostDelegate; 58 class ResourceDispatcherHostDelegate;
59 class ResourceMessageDelegate; 59 class ResourceMessageDelegate;
60 class ResourceMessageFilter; 60 class ResourceMessageFilter;
61 class ResourceRequestInfoImpl; 61 class ResourceRequestInfoImpl;
62 class StreamResourceHandler;
62 class SaveFileManager; 63 class SaveFileManager;
63 class WebContentsImpl; 64 class WebContentsImpl;
64 struct DownloadSaveInfo; 65 struct DownloadSaveInfo;
65 struct Referrer; 66 struct Referrer;
66 67
67 class CONTENT_EXPORT ResourceDispatcherHostImpl 68 class CONTENT_EXPORT ResourceDispatcherHostImpl
68 : public ResourceDispatcherHost, 69 : public ResourceDispatcherHost,
69 public ResourceLoaderDelegate { 70 public ResourceLoaderDelegate {
70 public: 71 public:
71 ResourceDispatcherHostImpl(); 72 ResourceDispatcherHostImpl();
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 scoped_ptr<ResourceHandler> CreateResourceHandlerForDownload( 208 scoped_ptr<ResourceHandler> CreateResourceHandlerForDownload(
208 net::URLRequest* request, 209 net::URLRequest* request,
209 bool is_content_initiated, 210 bool is_content_initiated,
210 bool must_download, 211 bool must_download,
211 uint32 id, 212 uint32 id,
212 scoped_ptr<DownloadSaveInfo> save_info, 213 scoped_ptr<DownloadSaveInfo> save_info,
213 const DownloadUrlParameters::OnStartedCallback& started_cb); 214 const DownloadUrlParameters::OnStartedCallback& started_cb);
214 215
215 // Must be called after the ResourceRequestInfo has been created 216 // Must be called after the ResourceRequestInfo has been created
216 // and associated with the request. 217 // and associated with the request.
217 scoped_ptr<ResourceHandler> MaybeInterceptAsStream( 218 scoped_ptr<StreamResourceHandler> MaybeInterceptAsStream(
218 net::URLRequest* request, 219 net::URLRequest* request,
219 ResourceResponse* response); 220 ResourceResponse* response);
220 221
221 void ClearSSLClientAuthHandlerForRequest(net::URLRequest* request); 222 void ClearSSLClientAuthHandlerForRequest(net::URLRequest* request);
222 223
223 ResourceScheduler* scheduler() { return scheduler_.get(); } 224 ResourceScheduler* scheduler() { return scheduler_.get(); }
224 225
225 // Called by a ResourceHandler when it's ready to start reading data and 226 // Called by a ResourceHandler when it's ready to start reading data and
226 // sending it to the renderer. Returns true if there are enough file 227 // sending it to the renderer. Returns true if there are enough file
227 // descriptors available for the shared memory buffer. If false is returned, 228 // descriptors available for the shared memory buffer. If false is returned,
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; 510 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap;
510 511
511 OfflineMap offline_policy_map_; 512 OfflineMap offline_policy_map_;
512 513
513 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 514 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
514 }; 515 };
515 516
516 } // namespace content 517 } // namespace content
517 518
518 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 519 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698