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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 // Cancels a displayed desktop notification. | 299 // Cancels a displayed desktop notification. |
300 virtual void CancelDesktopNotification( | 300 virtual void CancelDesktopNotification( |
301 int render_process_id, | 301 int render_process_id, |
302 int render_view_id, | 302 int render_view_id, |
303 int notification_id) = 0; | 303 int notification_id) = 0; |
304 | 304 |
305 // Returns true if the given page is allowed to open a window of the given | 305 // Returns true if the given page is allowed to open a window of the given |
306 // type. | 306 // type. |
307 // This is called on the IO thread. | 307 // This is called on the IO thread. |
308 virtual bool CanCreateWindow( | 308 virtual bool CanCreateWindow( |
| 309 const GURL& opener_url, |
309 const GURL& source_origin, | 310 const GURL& source_origin, |
310 WindowContainerType container_type, | 311 WindowContainerType container_type, |
311 content::ResourceContext* context, | 312 content::ResourceContext* context, |
312 int render_process_id) = 0; | 313 int render_process_id) = 0; |
313 | 314 |
314 // Returns a title string to use in the task manager for a process host with | 315 // Returns a title string to use in the task manager for a process host with |
315 // the given URL, or the empty string to fall back to the default logic. | 316 // the given URL, or the empty string to fall back to the default logic. |
316 // This is called on the IO thread. | 317 // This is called on the IO thread. |
317 virtual std::string GetWorkerProcessTitle( | 318 virtual std::string GetWorkerProcessTitle( |
318 const GURL& url, content::ResourceContext* context) = 0; | 319 const GURL& url, content::ResourceContext* context) = 0; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // This is called on a worker thread. | 389 // This is called on a worker thread. |
389 virtual | 390 virtual |
390 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 391 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
391 const GURL& url) = 0; | 392 const GURL& url) = 0; |
392 #endif | 393 #endif |
393 }; | 394 }; |
394 | 395 |
395 } // namespace content | 396 } // namespace content |
396 | 397 |
397 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 398 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |