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

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

Issue 114193009: [Download] Return DownloadInterruptReason from OnStartedCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ResourceDispatcherHostImpl(); 71 ResourceDispatcherHostImpl();
72 virtual ~ResourceDispatcherHostImpl(); 72 virtual ~ResourceDispatcherHostImpl();
73 73
74 // Returns the current ResourceDispatcherHostImpl. May return NULL if it 74 // Returns the current ResourceDispatcherHostImpl. May return NULL if it
75 // hasn't been created yet. 75 // hasn't been created yet.
76 static ResourceDispatcherHostImpl* Get(); 76 static ResourceDispatcherHostImpl* Get();
77 77
78 // ResourceDispatcherHost implementation: 78 // ResourceDispatcherHost implementation:
79 virtual void SetDelegate(ResourceDispatcherHostDelegate* delegate) OVERRIDE; 79 virtual void SetDelegate(ResourceDispatcherHostDelegate* delegate) OVERRIDE;
80 virtual void SetAllowCrossOriginAuthPrompt(bool value) OVERRIDE; 80 virtual void SetAllowCrossOriginAuthPrompt(bool value) OVERRIDE;
81 virtual net::Error BeginDownload( 81 virtual DownloadInterruptReason BeginDownload(
82 scoped_ptr<net::URLRequest> request, 82 scoped_ptr<net::URLRequest> request,
83 const Referrer& referrer, 83 const Referrer& referrer,
84 bool is_content_initiated, 84 bool is_content_initiated,
85 ResourceContext* context, 85 ResourceContext* context,
86 int child_id, 86 int child_id,
87 int route_id, 87 int route_id,
88 bool prefer_cache, 88 bool prefer_cache,
89 scoped_ptr<DownloadSaveInfo> save_info, 89 scoped_ptr<DownloadSaveInfo> save_info,
90 uint32 download_id, 90 uint32 download_id,
91 const DownloadStartedCallback& started_callback) OVERRIDE; 91 const DownloadStartedCallback& started_callback) OVERRIDE;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap; 506 typedef std::map<GlobalRoutingID, OfflinePolicy*> OfflineMap;
507 507
508 OfflineMap offline_policy_map_; 508 OfflineMap offline_policy_map_;
509 509
510 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl); 510 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHostImpl);
511 }; 511 };
512 512
513 } // namespace content 513 } // namespace content
514 514
515 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_ 515 #endif // CONTENT_BROWSER_LOADER_RESOURCE_DISPATCHER_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_internals_ui.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698