| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 491 |
| 492 // Returns the platform notification service, capable of displaying Web | 492 // Returns the platform notification service, capable of displaying Web |
| 493 // Notifications to the user. The embedder can return a nullptr if they don't | 493 // Notifications to the user. The embedder can return a nullptr if they don't |
| 494 // support this functionality. May be called from any thread. | 494 // support this functionality. May be called from any thread. |
| 495 virtual PlatformNotificationService* GetPlatformNotificationService(); | 495 virtual PlatformNotificationService* GetPlatformNotificationService(); |
| 496 | 496 |
| 497 // Returns true if the given page is allowed to open a window of the given | 497 // Returns true if the given page is allowed to open a window of the given |
| 498 // type. If true is returned, |no_javascript_access| will indicate whether | 498 // type. If true is returned, |no_javascript_access| will indicate whether |
| 499 // the window that is created should be scriptable/in the same process. | 499 // the window that is created should be scriptable/in the same process. |
| 500 // This is called on the IO thread. | 500 // This is called on the IO thread. |
| 501 virtual bool CanCreateWindow(const GURL& opener_url, | 501 virtual bool CanCreateWindow(int opener_render_process_id, |
| 502 int opener_render_frame_id, |
| 503 const GURL& opener_url, |
| 502 const GURL& opener_top_level_frame_url, | 504 const GURL& opener_top_level_frame_url, |
| 503 const GURL& source_origin, | 505 const GURL& source_origin, |
| 504 WindowContainerType container_type, | 506 WindowContainerType container_type, |
| 505 const GURL& target_url, | 507 const GURL& target_url, |
| 506 const Referrer& referrer, | 508 const Referrer& referrer, |
| 507 const std::string& frame_name, | 509 const std::string& frame_name, |
| 508 WindowOpenDisposition disposition, | 510 WindowOpenDisposition disposition, |
| 509 const blink::WebWindowFeatures& features, | 511 const blink::WebWindowFeatures& features, |
| 510 bool user_gesture, | 512 bool user_gesture, |
| 511 bool opener_suppressed, | 513 bool opener_suppressed, |
| 512 ResourceContext* context, | 514 ResourceContext* context, |
| 513 int render_process_id, | |
| 514 int opener_render_view_id, | |
| 515 int opener_render_frame_id, | |
| 516 bool* no_javascript_access); | 515 bool* no_javascript_access); |
| 517 | 516 |
| 518 // Notifies the embedder that the ResourceDispatcherHost has been created. | 517 // Notifies the embedder that the ResourceDispatcherHost has been created. |
| 519 // This is when it can optionally add a delegate. | 518 // This is when it can optionally add a delegate. |
| 520 virtual void ResourceDispatcherHostCreated() {} | 519 virtual void ResourceDispatcherHostCreated() {} |
| 521 | 520 |
| 522 // Allows the embedder to return a delegate for the SpeechRecognitionManager. | 521 // Allows the embedder to return a delegate for the SpeechRecognitionManager. |
| 523 // The delegate will be owned by the manager. It's valid to return nullptr. | 522 // The delegate will be owned by the manager. It's valid to return nullptr. |
| 524 virtual SpeechRecognitionManagerDelegate* | 523 virtual SpeechRecognitionManagerDelegate* |
| 525 CreateSpeechRecognitionManagerDelegate(); | 524 CreateSpeechRecognitionManagerDelegate(); |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 // by |render_frame_host|. This may be called multiple times if there is more | 788 // by |render_frame_host|. This may be called multiple times if there is more |
| 790 // than one source candidate in the same render frame. | 789 // than one source candidate in the same render frame. |
| 791 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, | 790 virtual void CreateMediaRemoter(RenderFrameHost* render_frame_host, |
| 792 media::mojom::RemotingSourcePtr source, | 791 media::mojom::RemotingSourcePtr source, |
| 793 media::mojom::RemoterRequest request) {} | 792 media::mojom::RemoterRequest request) {} |
| 794 }; | 793 }; |
| 795 | 794 |
| 796 } // namespace content | 795 } // namespace content |
| 797 | 796 |
| 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 797 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |