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 17 matching lines...) Expand all Loading... |
28 #include "webkit/common/resource_type.h" | 28 #include "webkit/common/resource_type.h" |
29 | 29 |
30 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 30 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
31 #include "base/posix/global_descriptors.h" | 31 #include "base/posix/global_descriptors.h" |
32 #endif | 32 #endif |
33 | 33 |
34 class CommandLine; | 34 class CommandLine; |
35 class GURL; | 35 class GURL; |
36 struct WebPreferences; | 36 struct WebPreferences; |
37 | 37 |
38 namespace WebKit { | 38 namespace blink { |
39 struct WebWindowFeatures; | 39 struct WebWindowFeatures; |
40 } | 40 } |
41 | 41 |
42 namespace base { | 42 namespace base { |
43 class DictionaryValue; | 43 class DictionaryValue; |
44 class FilePath; | 44 class FilePath; |
45 } | 45 } |
46 namespace crypto { | 46 namespace crypto { |
47 class CryptoModuleBlockingPasswordDelegate; | 47 class CryptoModuleBlockingPasswordDelegate; |
48 } | 48 } |
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 | 423 |
424 // Asks permission to show desktop notifications. | 424 // Asks permission to show desktop notifications. |
425 virtual void RequestDesktopNotificationPermission( | 425 virtual void RequestDesktopNotificationPermission( |
426 const GURL& source_origin, | 426 const GURL& source_origin, |
427 int callback_context, | 427 int callback_context, |
428 int render_process_id, | 428 int render_process_id, |
429 int render_view_id) {} | 429 int render_view_id) {} |
430 | 430 |
431 // Checks if the given page has permission to show desktop notifications. | 431 // Checks if the given page has permission to show desktop notifications. |
432 // This is called on the IO thread. | 432 // This is called on the IO thread. |
433 virtual WebKit::WebNotificationPresenter::Permission | 433 virtual blink::WebNotificationPresenter::Permission |
434 CheckDesktopNotificationPermission( | 434 CheckDesktopNotificationPermission( |
435 const GURL& source_url, | 435 const GURL& source_url, |
436 ResourceContext* context, | 436 ResourceContext* context, |
437 int render_process_id); | 437 int render_process_id); |
438 | 438 |
439 // Show a desktop notification. If |worker| is true, the request came from an | 439 // Show a desktop notification. If |worker| is true, the request came from an |
440 // HTML5 web worker, otherwise, it came from a renderer. | 440 // HTML5 web worker, otherwise, it came from a renderer. |
441 virtual void ShowDesktopNotification( | 441 virtual void ShowDesktopNotification( |
442 const ShowDesktopNotificationHostMsgParams& params, | 442 const ShowDesktopNotificationHostMsgParams& params, |
443 int render_process_id, | 443 int render_process_id, |
(...skipping 10 matching lines...) Expand all Loading... |
454 // type. If true is returned, |no_javascript_access| will indicate whether | 454 // type. If true is returned, |no_javascript_access| will indicate whether |
455 // the window that is created should be scriptable/in the same process. | 455 // the window that is created should be scriptable/in the same process. |
456 // This is called on the IO thread. | 456 // This is called on the IO thread. |
457 virtual bool CanCreateWindow(const GURL& opener_url, | 457 virtual bool CanCreateWindow(const GURL& opener_url, |
458 const GURL& opener_top_level_frame_url, | 458 const GURL& opener_top_level_frame_url, |
459 const GURL& source_origin, | 459 const GURL& source_origin, |
460 WindowContainerType container_type, | 460 WindowContainerType container_type, |
461 const GURL& target_url, | 461 const GURL& target_url, |
462 const content::Referrer& referrer, | 462 const content::Referrer& referrer, |
463 WindowOpenDisposition disposition, | 463 WindowOpenDisposition disposition, |
464 const WebKit::WebWindowFeatures& features, | 464 const blink::WebWindowFeatures& features, |
465 bool user_gesture, | 465 bool user_gesture, |
466 bool opener_suppressed, | 466 bool opener_suppressed, |
467 content::ResourceContext* context, | 467 content::ResourceContext* context, |
468 int render_process_id, | 468 int render_process_id, |
469 bool is_guest, | 469 bool is_guest, |
470 int opener_id, | 470 int opener_id, |
471 bool* no_javascript_access); | 471 bool* no_javascript_access); |
472 | 472 |
473 // Returns a title string to use in the task manager for a process host with | 473 // Returns a title string to use in the task manager for a process host with |
474 // the given URL, or the empty string to fall back to the default logic. | 474 // the given URL, or the empty string to fall back to the default logic. |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // Returns true if plugin referred to by the url can use | 602 // Returns true if plugin referred to by the url can use |
603 // pp::FileIO::RequestOSFileHandle. | 603 // pp::FileIO::RequestOSFileHandle. |
604 virtual bool IsPluginAllowedToCallRequestOSFileHandle( | 604 virtual bool IsPluginAllowedToCallRequestOSFileHandle( |
605 content::BrowserContext* browser_context, | 605 content::BrowserContext* browser_context, |
606 const GURL& url); | 606 const GURL& url); |
607 }; | 607 }; |
608 | 608 |
609 } // namespace content | 609 } // namespace content |
610 | 610 |
611 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 611 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |