OLD | NEW |
---|---|
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_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 virtual void RequestTransferURL( | 320 virtual void RequestTransferURL( |
321 const GURL& url, | 321 const GURL& url, |
322 const content::Referrer& referrer, | 322 const content::Referrer& referrer, |
323 WindowOpenDisposition disposition, | 323 WindowOpenDisposition disposition, |
324 int64 source_frame_id, | 324 int64 source_frame_id, |
325 const content::GlobalRequestID& old_request_id) {} | 325 const content::GlobalRequestID& old_request_id) {} |
326 | 326 |
327 // The page wants to close the active view in this tab. | 327 // The page wants to close the active view in this tab. |
328 virtual void RouteCloseEvent(RenderViewHost* rvh) {} | 328 virtual void RouteCloseEvent(RenderViewHost* rvh) {} |
329 | 329 |
330 // The page is asking whether to ignore the navigation. | |
331 virtual bool ShouldIgnoreNavigation( | |
332 RenderViewHost* rvh, | |
333 const GURL& url, | |
334 const content::Referrer& referrer, | |
335 bool is_content_initiated); | |
joth
2012/05/11 15:34:13
I wonder if it would be preferable to have this un
mkosiba (inactive)
2012/05/15 14:20:23
As the change is now the new throttle is built (an
| |
336 | |
330 // A javascript message, confirmation or prompt should be shown. | 337 // A javascript message, confirmation or prompt should be shown. |
331 virtual void RunJavaScriptMessage(RenderViewHost* rvh, | 338 virtual void RunJavaScriptMessage(RenderViewHost* rvh, |
332 const string16& message, | 339 const string16& message, |
333 const string16& default_prompt, | 340 const string16& default_prompt, |
334 const GURL& frame_url, | 341 const GURL& frame_url, |
335 ui::JavascriptMessageType type, | 342 ui::JavascriptMessageType type, |
336 IPC::Message* reply_msg, | 343 IPC::Message* reply_msg, |
337 bool* did_suppress_message) {} | 344 bool* did_suppress_message) {} |
338 | 345 |
339 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, | 346 virtual void RunBeforeUnloadConfirm(RenderViewHost* rvh, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
432 // Notification that the view has lost the mouse lock. | 439 // Notification that the view has lost the mouse lock. |
433 virtual void LostMouseLock() {} | 440 virtual void LostMouseLock() {} |
434 | 441 |
435 protected: | 442 protected: |
436 virtual ~RenderViewHostDelegate() {} | 443 virtual ~RenderViewHostDelegate() {} |
437 }; | 444 }; |
438 | 445 |
439 } // namespace content | 446 } // namespace content |
440 | 447 |
441 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ | 448 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |