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/media/media_stream_infobar_delegate_android.h" | 5 #include "chrome/browser/media/media_stream_infobar_delegate_android.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "chrome/browser/infobars/infobar_service.h" | 13 #include "chrome/browser/infobars/infobar_service.h" |
14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
15 #include "components/content_settings/core/common/content_settings_types.h" | 15 #include "components/content_settings/core/common/content_settings_types.h" |
16 #include "components/google/core/browser/google_util.h" | 16 #include "components/google/core/browser/google_util.h" |
17 #include "components/infobars/core/infobar.h" | 17 #include "components/infobars/core/infobar.h" |
18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
19 #include "content/public/common/origin_util.h" | 19 #include "content/public/common/origin_util.h" |
20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
21 | 21 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 DCHECK_EQ(1, GetPermissionCount()); | 104 DCHECK_EQ(1, GetPermissionCount()); |
105 controller_->PermissionGranted(); | 105 controller_->PermissionGranted(); |
106 } | 106 } |
107 return true; | 107 return true; |
108 } | 108 } |
109 | 109 |
110 bool MediaStreamInfoBarDelegateAndroid::Cancel() { | 110 bool MediaStreamInfoBarDelegateAndroid::Cancel() { |
111 controller_->PermissionDenied(); | 111 controller_->PermissionDenied(); |
112 return true; | 112 return true; |
113 } | 113 } |
OLD | NEW |