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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.h

Issue 13609002: fix a problem that android cannot download files with basic authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 // A BrowserPluginGuest is the browser side of a browser <--> embedder 5 // A BrowserPluginGuest is the browser side of a browser <--> embedder
6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder 6 // renderer channel. A BrowserPlugin (a WebPlugin) is on the embedder
7 // renderer side of browser <--> embedder renderer communication. 7 // renderer side of browser <--> embedder renderer communication.
8 // 8 //
9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a 9 // BrowserPluginGuest lives on the UI thread of the browser process. It has a
10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The 10 // helper, BrowserPluginGuestHelper, which is a RenderViewHostObserver. The
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // this method is called, indicating that the new WebContents is ready to be 163 // this method is called, indicating that the new WebContents is ready to be
164 // attached. 164 // attached.
165 virtual void AddNewContents(WebContents* source, 165 virtual void AddNewContents(WebContents* source,
166 WebContents* new_contents, 166 WebContents* new_contents,
167 WindowOpenDisposition disposition, 167 WindowOpenDisposition disposition,
168 const gfx::Rect& initial_pos, 168 const gfx::Rect& initial_pos,
169 bool user_gesture, 169 bool user_gesture,
170 bool* was_blocked) OVERRIDE; 170 bool* was_blocked) OVERRIDE;
171 virtual bool CanDownload(RenderViewHost* render_view_host, 171 virtual bool CanDownload(RenderViewHost* render_view_host,
172 int request_id, 172 int request_id,
173 bool has_auth,
173 const std::string& request_method) OVERRIDE; 174 const std::string& request_method) OVERRIDE;
174 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; 175 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
175 virtual void WebContentsCreated(WebContents* source_contents, 176 virtual void WebContentsCreated(WebContents* source_contents,
176 int64 source_frame_id, 177 int64 source_frame_id,
177 const string16& frame_name, 178 const string16& frame_name,
178 const GURL& target_url, 179 const GURL& target_url,
179 WebContents* new_contents) OVERRIDE; 180 WebContents* new_contents) OVERRIDE;
180 virtual void RendererUnresponsive(WebContents* source) OVERRIDE; 181 virtual void RendererUnresponsive(WebContents* source) OVERRIDE;
181 virtual void RendererResponsive(WebContents* source) OVERRIDE; 182 virtual void RendererResponsive(WebContents* source) OVERRIDE;
182 virtual void RunFileChooser(WebContents* web_contents, 183 virtual void RunFileChooser(WebContents* web_contents,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // A map from request ID to instance ID for use by the New Window API. 432 // A map from request ID to instance ID for use by the New Window API.
432 typedef std::map<int, int> NewWindowRequestMap; 433 typedef std::map<int, int> NewWindowRequestMap;
433 NewWindowRequestMap new_window_request_map_; 434 NewWindowRequestMap new_window_request_map_;
434 435
435 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest); 436 DISALLOW_COPY_AND_ASSIGN(BrowserPluginGuest);
436 }; 437 };
437 438
438 } // namespace content 439 } // namespace content
439 440
440 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_ 441 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698