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

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

Issue 23868017: Use the top-level URL for popup blocking. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 virtual void CancelDesktopNotification( 447 virtual void CancelDesktopNotification(
448 int render_process_id, 448 int render_process_id,
449 int render_view_id, 449 int render_view_id,
450 int notification_id) {} 450 int notification_id) {}
451 451
452 // Returns true if the given page is allowed to open a window of the given 452 // Returns true if the given page is allowed to open a window of the given
453 // type. If true is returned, |no_javascript_access| will indicate whether 453 // type. If true is returned, |no_javascript_access| will indicate whether
454 // the window that is created should be scriptable/in the same process. 454 // the window that is created should be scriptable/in the same process.
455 // This is called on the IO thread. 455 // This is called on the IO thread.
456 virtual bool CanCreateWindow(const GURL& opener_url, 456 virtual bool CanCreateWindow(const GURL& opener_url,
457 const GURL& opener_top_level_frame_url,
457 const GURL& source_origin, 458 const GURL& source_origin,
458 WindowContainerType container_type, 459 WindowContainerType container_type,
459 const GURL& target_url, 460 const GURL& target_url,
460 const content::Referrer& referrer, 461 const content::Referrer& referrer,
461 WindowOpenDisposition disposition, 462 WindowOpenDisposition disposition,
462 const WebKit::WebWindowFeatures& features, 463 const WebKit::WebWindowFeatures& features,
463 bool user_gesture, 464 bool user_gesture,
464 bool opener_suppressed, 465 bool opener_suppressed,
465 content::ResourceContext* context, 466 content::ResourceContext* context,
466 int render_process_id, 467 int render_process_id,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 // This is called on a worker thread. 593 // This is called on a worker thread.
593 virtual 594 virtual
594 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 595 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
595 const GURL& url); 596 const GURL& url);
596 #endif 597 #endif
597 }; 598 };
598 599
599 } // namespace content 600 } // namespace content
600 601
601 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 602 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698