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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 13037003: permissionrequest API for guest Download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync @tott 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual bool TakeFocus(WebContents* source, 213 virtual bool TakeFocus(WebContents* source,
214 bool reverse); 214 bool reverse);
215 215
216 // Invoked when the page loses mouse capture. 216 // Invoked when the page loses mouse capture.
217 virtual void LostCapture() {} 217 virtual void LostCapture() {}
218 218
219 // Notification that |contents| has gained focus. 219 // Notification that |contents| has gained focus.
220 virtual void WebContentsFocused(WebContents* contents) {} 220 virtual void WebContentsFocused(WebContents* contents) {}
221 221
222 // Asks the delegate if the given tab can download. 222 // Asks the delegate if the given tab can download.
223 virtual bool CanDownload(RenderViewHost* render_view_host, 223 // Invoking the |callback| synchronously is OK.
224 virtual void CanDownload(RenderViewHost* render_view_host,
224 int request_id, 225 int request_id,
225 const std::string& request_method); 226 const std::string& request_method,
227 const base::Callback<void(bool)>& callback);
226 228
227 // Return much extra vertical space should be allotted to the 229 // Return much extra vertical space should be allotted to the
228 // render view widget during various animations (e.g. infobar closing). 230 // render view widget during various animations (e.g. infobar closing).
229 // This is used to make painting look smoother. 231 // This is used to make painting look smoother.
230 virtual int GetExtraRenderViewHeight() const; 232 virtual int GetExtraRenderViewHeight() const;
231 233
232 // Returns true if the context menu operation was handled by the delegate. 234 // Returns true if the context menu operation was handled by the delegate.
233 virtual bool HandleContextMenu(const content::ContextMenuParams& params); 235 virtual bool HandleContextMenu(const content::ContextMenuParams& params);
234 236
235 // Opens source view for given WebContents that is navigated to the given 237 // Opens source view for given WebContents that is navigated to the given
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // Called when |this| is no longer the WebContentsDelegate for |source|. 430 // Called when |this| is no longer the WebContentsDelegate for |source|.
429 void Detach(WebContents* source); 431 void Detach(WebContents* source);
430 432
431 // The WebContents that this is currently a delegate for. 433 // The WebContents that this is currently a delegate for.
432 std::set<WebContents*> attached_contents_; 434 std::set<WebContents*> attached_contents_;
433 }; 435 };
434 436
435 } // namespace content 437 } // namespace content
436 438
437 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 439 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/common/browser_plugin/browser_plugin_message_enums.h ('k') | content/public/browser/web_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698