| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 int notification_id) {} | 417 int notification_id) {} |
| 418 | 418 |
| 419 // Returns true if the given page is allowed to open a window of the given | 419 // Returns true if the given page is allowed to open a window of the given |
| 420 // type. If true is returned, |no_javascript_access| will indicate whether | 420 // type. If true is returned, |no_javascript_access| will indicate whether |
| 421 // the window that is created should be scriptable/in the same process. | 421 // the window that is created should be scriptable/in the same process. |
| 422 // This is called on the IO thread. | 422 // This is called on the IO thread. |
| 423 virtual bool CanCreateWindow( | 423 virtual bool CanCreateWindow( |
| 424 const GURL& opener_url, | 424 const GURL& opener_url, |
| 425 const GURL& source_origin, | 425 const GURL& source_origin, |
| 426 WindowContainerType container_type, | 426 WindowContainerType container_type, |
| 427 const WebKit::WindowFeatures& web_window_features, |
| 427 ResourceContext* context, | 428 ResourceContext* context, |
| 428 int render_process_id, | 429 int render_process_id, |
| 429 bool* no_javascript_access); | 430 bool* no_javascript_access); |
| 430 | 431 |
| 431 // Returns a title string to use in the task manager for a process host with | 432 // Returns a title string to use in the task manager for a process host with |
| 432 // the given URL, or the empty string to fall back to the default logic. | 433 // the given URL, or the empty string to fall back to the default logic. |
| 433 // This is called on the IO thread. | 434 // This is called on the IO thread. |
| 434 virtual std::string GetWorkerProcessTitle(const GURL& url, | 435 virtual std::string GetWorkerProcessTitle(const GURL& url, |
| 435 ResourceContext* context); | 436 ResourceContext* context); |
| 436 | 437 |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 // This is called on a worker thread. | 546 // This is called on a worker thread. |
| 546 virtual | 547 virtual |
| 547 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 548 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 548 const GURL& url); | 549 const GURL& url); |
| 549 #endif | 550 #endif |
| 550 }; | 551 }; |
| 551 | 552 |
| 552 } // namespace content | 553 } // namespace content |
| 553 | 554 |
| 554 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 555 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |