| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/memory/scoped_vector.h" | 16 #include "base/memory/scoped_vector.h" |
| 17 #include "base/values.h" | 17 #include "base/values.h" |
| 18 #include "content/public/browser/certificate_request_result_type.h" | 18 #include "content/public/browser/certificate_request_result_type.h" |
| 19 #include "content/public/browser/desktop_notification_delegate.h" |
| 19 #include "content/public/common/content_client.h" | 20 #include "content/public/common/content_client.h" |
| 20 #include "content/public/common/resource_type.h" | 21 #include "content/public/common/resource_type.h" |
| 21 #include "content/public/common/socket_permission_request.h" | 22 #include "content/public/common/socket_permission_request.h" |
| 22 #include "content/public/common/window_container_type.h" | 23 #include "content/public/common/window_container_type.h" |
| 23 #include "net/base/mime_util.h" | 24 #include "net/base/mime_util.h" |
| 24 #include "net/cookies/canonical_cookie.h" | 25 #include "net/cookies/canonical_cookie.h" |
| 25 #include "net/url_request/url_request_interceptor.h" | 26 #include "net/url_request/url_request_interceptor.h" |
| 26 #include "net/url_request/url_request_job_factory.h" | 27 #include "net/url_request/url_request_job_factory.h" |
| 27 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" | 28 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" |
| 28 #include "ui/base/window_open_disposition.h" | 29 #include "ui/base/window_open_disposition.h" |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 CheckDesktopNotificationPermission( | 431 CheckDesktopNotificationPermission( |
| 431 const GURL& source_url, | 432 const GURL& source_url, |
| 432 ResourceContext* context, | 433 ResourceContext* context, |
| 433 int render_process_id); | 434 int render_process_id); |
| 434 | 435 |
| 435 // Show a desktop notification. If |cancel_callback| is non-null, it's set to | 436 // Show a desktop notification. If |cancel_callback| is non-null, it's set to |
| 436 // a callback which can be used to cancel the notification. | 437 // a callback which can be used to cancel the notification. |
| 437 virtual void ShowDesktopNotification( | 438 virtual void ShowDesktopNotification( |
| 438 const ShowDesktopNotificationHostMsgParams& params, | 439 const ShowDesktopNotificationHostMsgParams& params, |
| 439 RenderFrameHost* render_frame_host, | 440 RenderFrameHost* render_frame_host, |
| 440 DesktopNotificationDelegate* delegate, | 441 scoped_ptr<DesktopNotificationDelegate> delegate, |
| 441 base::Closure* cancel_callback) {} | 442 base::Closure* cancel_callback) {} |
| 442 | 443 |
| 443 // The renderer is requesting permission to use Geolocation. When the answer | 444 // The renderer is requesting permission to use Geolocation. When the answer |
| 444 // to a permission request has been determined, |result_callback| should be | 445 // to a permission request has been determined, |result_callback| should be |
| 445 // called with the result. If |cancel_callback| is non-null, it's set to a | 446 // called with the result. If |cancel_callback| is non-null, it's set to a |
| 446 // callback which can be used to cancel the permission request. | 447 // callback which can be used to cancel the permission request. |
| 447 virtual void RequestGeolocationPermission( | 448 virtual void RequestGeolocationPermission( |
| 448 WebContents* web_contents, | 449 WebContents* web_contents, |
| 449 int bridge_id, | 450 int bridge_id, |
| 450 const GURL& requesting_frame, | 451 const GURL& requesting_frame, |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 653 // implementation. Return NULL to disable external surface video. | 654 // implementation. Return NULL to disable external surface video. |
| 654 virtual ExternalVideoSurfaceContainer* | 655 virtual ExternalVideoSurfaceContainer* |
| 655 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 656 #endif | 657 #endif |
| 657 }; | 658 }; |
| 658 | 659 |
| 659 } // namespace content | 660 } // namespace content |
| 660 | 661 |
| 661 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |