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 #include "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1946 GeolocationPermissionContextFactory::GetForProfile(profile) | 1946 GeolocationPermissionContextFactory::GetForProfile(profile) |
1947 ->RequestPermission(web_contents, | 1947 ->RequestPermission(web_contents, |
1948 request_id, | 1948 request_id, |
1949 requesting_frame.GetOrigin(), | 1949 requesting_frame.GetOrigin(), |
1950 user_gesture, | 1950 user_gesture, |
1951 result_callback); | 1951 result_callback); |
1952 break; | 1952 break; |
1953 case content::PERMISSION_PROTECTED_MEDIA: | 1953 case content::PERMISSION_PROTECTED_MEDIA: |
1954 #if defined(OS_ANDROID) | 1954 #if defined(OS_ANDROID) |
1955 ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(profile) | 1955 ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(profile) |
1956 ->RequestProtectedMediaIdentifierPermission( | 1956 ->RequestPermission(web_contents, |
mlamouri (slow - plz ping)
2014/12/02 22:43:30
nit: indentation
timvolodine
2014/12/03 16:44:25
Done.
| |
1957 web_contents, requesting_frame, result_callback); | 1957 request_id, |
1958 requesting_frame.GetOrigin(), | |
1959 user_gesture, | |
1960 result_callback); | |
1958 #else | 1961 #else |
1959 NOTIMPLEMENTED(); | 1962 NOTIMPLEMENTED(); |
1960 #endif | 1963 #endif |
1961 break; | 1964 break; |
1962 case content::PERMISSION_PUSH_MESSAGING: | 1965 case content::PERMISSION_PUSH_MESSAGING: |
1963 gcm::PushMessagingPermissionContextFactory::GetForProfile(profile) | 1966 gcm::PushMessagingPermissionContextFactory::GetForProfile(profile) |
1964 ->RequestPermission(web_contents, | 1967 ->RequestPermission(web_contents, |
1965 request_id, | 1968 request_id, |
1966 requesting_frame.GetOrigin(), | 1969 requesting_frame.GetOrigin(), |
1967 user_gesture, | 1970 user_gesture, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2000 NOTIMPLEMENTED(); | 2003 NOTIMPLEMENTED(); |
2001 #endif | 2004 #endif |
2002 break; | 2005 break; |
2003 case content::PERMISSION_GEOLOCATION: | 2006 case content::PERMISSION_GEOLOCATION: |
2004 GeolocationPermissionContextFactory::GetForProfile(profile) | 2007 GeolocationPermissionContextFactory::GetForProfile(profile) |
2005 ->CancelPermissionRequest(web_contents, request_id); | 2008 ->CancelPermissionRequest(web_contents, request_id); |
2006 break; | 2009 break; |
2007 case content::PERMISSION_PROTECTED_MEDIA: | 2010 case content::PERMISSION_PROTECTED_MEDIA: |
2008 #if defined(OS_ANDROID) | 2011 #if defined(OS_ANDROID) |
2009 ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(profile) | 2012 ProtectedMediaIdentifierPermissionContextFactory::GetForProfile(profile) |
2010 ->CancelProtectedMediaIdentifierPermissionRequests( | 2013 ->CancelPermissionRequest(web_contents, request_id); |
2011 render_process_id, render_view_id, requesting_frame); | |
2012 #else | 2014 #else |
2013 NOTIMPLEMENTED(); | 2015 NOTIMPLEMENTED(); |
2014 #endif | 2016 #endif |
2015 break; | 2017 break; |
2016 case content::PERMISSION_PUSH_MESSAGING: | 2018 case content::PERMISSION_PUSH_MESSAGING: |
2017 NOTIMPLEMENTED() << "CancelPermission not implemented for " << permission; | 2019 NOTIMPLEMENTED() << "CancelPermission not implemented for " << permission; |
2018 break; | 2020 break; |
2019 case content::PERMISSION_NUM: | 2021 case content::PERMISSION_NUM: |
2020 NOTREACHED() << "Invalid CancelPermission for " << permission; | 2022 NOTREACHED() << "Invalid CancelPermission for " << permission; |
2021 break; | 2023 break; |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2675 switches::kDisableWebRtcEncryption, | 2677 switches::kDisableWebRtcEncryption, |
2676 }; | 2678 }; |
2677 to_command_line->CopySwitchesFrom(from_command_line, | 2679 to_command_line->CopySwitchesFrom(from_command_line, |
2678 kWebRtcDevSwitchNames, | 2680 kWebRtcDevSwitchNames, |
2679 arraysize(kWebRtcDevSwitchNames)); | 2681 arraysize(kWebRtcDevSwitchNames)); |
2680 } | 2682 } |
2681 } | 2683 } |
2682 #endif // defined(ENABLE_WEBRTC) | 2684 #endif // defined(ENABLE_WEBRTC) |
2683 | 2685 |
2684 } // namespace chrome | 2686 } // namespace chrome |
OLD | NEW |