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

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

Issue 351029: Support dragging a virtual file out of the browser. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 fowards the messages from the 7 // dispatches them to URLRequests. It then fowards 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Returns true if the message was a resource message that was processed. 100 // Returns true if the message was a resource message that was processed.
101 // If it was, message_was_ok will be false iff the message was corrupt. 101 // If it was, message_was_ok will be false iff the message was corrupt.
102 bool OnMessageReceived(const IPC::Message& message, 102 bool OnMessageReceived(const IPC::Message& message,
103 Receiver* receiver, 103 Receiver* receiver,
104 bool* message_was_ok); 104 bool* message_was_ok);
105 105
106 // Initiates a download from the browser process (as opposed to a resource 106 // Initiates a download from the browser process (as opposed to a resource
107 // request from the renderer or another child process). 107 // request from the renderer or another child process).
108 void BeginDownload(const GURL& url, 108 void BeginDownload(const GURL& url,
109 const GURL& referrer, 109 const GURL& referrer,
110 const FilePath& save_file_path,
110 int process_unique_id, 111 int process_unique_id,
111 int route_id, 112 int route_id,
112 URLRequestContext* request_context); 113 URLRequestContext* request_context);
113 114
114 // Initiates a save file from the browser process (as opposed to a resource 115 // Initiates a save file from the browser process (as opposed to a resource
115 // request from the renderer or another child process). 116 // request from the renderer or another child process).
116 void BeginSaveFile(const GURL& url, 117 void BeginSaveFile(const GURL& url,
117 const GURL& referrer, 118 const GURL& referrer,
118 int process_unique_id, 119 int process_unique_id,
119 int route_id, 120 int route_id,
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 // to the source of the message. 460 // to the source of the message.
460 Receiver* receiver_; 461 Receiver* receiver_;
461 462
462 // Keeps track of elements blocked by the Privacy Blacklist. 463 // Keeps track of elements blocked by the Privacy Blacklist.
463 chrome::BlockedResponse blocked_; 464 chrome::BlockedResponse blocked_;
464 465
465 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost); 466 DISALLOW_COPY_AND_ASSIGN(ResourceDispatcherHost);
466 }; 467 };
467 468
468 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_ 469 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698