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_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 virtual void CancelDesktopNotification( | 443 virtual void CancelDesktopNotification( |
444 int render_process_id, | 444 int render_process_id, |
445 int render_view_id, | 445 int render_view_id, |
446 int notification_id) {} | 446 int notification_id) {} |
447 | 447 |
448 // Returns true if the given page is allowed to open a window of the given | 448 // Returns true if the given page is allowed to open a window of the given |
449 // type. If true is returned, |no_javascript_access| will indicate whether | 449 // type. If true is returned, |no_javascript_access| will indicate whether |
450 // the window that is created should be scriptable/in the same process. | 450 // the window that is created should be scriptable/in the same process. |
451 // This is called on the IO thread. | 451 // This is called on the IO thread. |
452 virtual bool CanCreateWindow(const GURL& opener_url, | 452 virtual bool CanCreateWindow(const GURL& opener_url, |
| 453 const GURL& opener_top_level_frame_url, |
453 const GURL& source_origin, | 454 const GURL& source_origin, |
454 WindowContainerType container_type, | 455 WindowContainerType container_type, |
455 const GURL& target_url, | 456 const GURL& target_url, |
456 const content::Referrer& referrer, | 457 const content::Referrer& referrer, |
457 WindowOpenDisposition disposition, | 458 WindowOpenDisposition disposition, |
458 const WebKit::WebWindowFeatures& features, | 459 const WebKit::WebWindowFeatures& features, |
459 bool user_gesture, | 460 bool user_gesture, |
460 bool opener_suppressed, | 461 bool opener_suppressed, |
461 content::ResourceContext* context, | 462 content::ResourceContext* context, |
462 int render_process_id, | 463 int render_process_id, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 // This is called on a worker thread. | 589 // This is called on a worker thread. |
589 virtual | 590 virtual |
590 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 591 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
591 const GURL& url); | 592 const GURL& url); |
592 #endif | 593 #endif |
593 }; | 594 }; |
594 | 595 |
595 } // namespace content | 596 } // namespace content |
596 | 597 |
597 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 598 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |