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

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

Issue 2506183002: Make window.open() IPCs be frame-based (Closed)
Patch Set: Rebase. Created 3 years, 11 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 490
491 // Returns the platform notification service, capable of displaying Web 491 // Returns the platform notification service, capable of displaying Web
492 // Notifications to the user. The embedder can return a nullptr if they don't 492 // Notifications to the user. The embedder can return a nullptr if they don't
493 // support this functionality. May be called from any thread. 493 // support this functionality. May be called from any thread.
494 virtual PlatformNotificationService* GetPlatformNotificationService(); 494 virtual PlatformNotificationService* GetPlatformNotificationService();
495 495
496 // Returns true if the given page is allowed to open a window of the given 496 // Returns true if the given page is allowed to open a window of the given
497 // type. If true is returned, |no_javascript_access| will indicate whether 497 // type. If true is returned, |no_javascript_access| will indicate whether
498 // the window that is created should be scriptable/in the same process. 498 // the window that is created should be scriptable/in the same process.
499 // This is called on the IO thread. 499 // This is called on the IO thread.
500 virtual bool CanCreateWindow(const GURL& opener_url, 500 virtual bool CanCreateWindow(int opener_render_process_id,
501 int opener_render_frame_id,
502 const GURL& opener_url,
501 const GURL& opener_top_level_frame_url, 503 const GURL& opener_top_level_frame_url,
502 const GURL& source_origin, 504 const GURL& source_origin,
503 WindowContainerType container_type, 505 WindowContainerType container_type,
504 const GURL& target_url, 506 const GURL& target_url,
505 const Referrer& referrer, 507 const Referrer& referrer,
506 const std::string& frame_name, 508 const std::string& frame_name,
507 WindowOpenDisposition disposition, 509 WindowOpenDisposition disposition,
508 const blink::WebWindowFeatures& features, 510 const blink::WebWindowFeatures& features,
509 bool user_gesture, 511 bool user_gesture,
510 bool opener_suppressed, 512 bool opener_suppressed,
511 ResourceContext* context, 513 ResourceContext* context,
512 int render_process_id,
513 int opener_render_view_id,
514 int opener_render_frame_id,
515 bool* no_javascript_access); 514 bool* no_javascript_access);
516 515
517 // Notifies the embedder that the ResourceDispatcherHost has been created. 516 // Notifies the embedder that the ResourceDispatcherHost has been created.
518 // This is when it can optionally add a delegate. 517 // This is when it can optionally add a delegate.
519 virtual void ResourceDispatcherHostCreated() {} 518 virtual void ResourceDispatcherHostCreated() {}
520 519
521 // Allows the embedder to return a delegate for the SpeechRecognitionManager. 520 // Allows the embedder to return a delegate for the SpeechRecognitionManager.
522 // The delegate will be owned by the manager. It's valid to return nullptr. 521 // The delegate will be owned by the manager. It's valid to return nullptr.
523 virtual SpeechRecognitionManagerDelegate* 522 virtual SpeechRecognitionManagerDelegate*
524 CreateSpeechRecognitionManagerDelegate(); 523 CreateSpeechRecognitionManagerDelegate();
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 virtual bool ShouldRedirectDOMStorageTaskRunner(); 820 virtual bool ShouldRedirectDOMStorageTaskRunner();
822 821
823 // If this returns true, all BrowserThreads (but UI/IO) that support it on 822 // If this returns true, all BrowserThreads (but UI/IO) that support it on
824 // this platform will experimentally be redirected to TaskScheduler. 823 // this platform will experimentally be redirected to TaskScheduler.
825 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
826 }; 825 };
827 826
828 } // namespace content 827 } // namespace content
829 828
830 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698