OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/content_settings/permission_bubble_request_impl.h" | 5 #include "chrome/browser/content_settings/permission_bubble_request_impl.h" |
6 | 6 |
7 #include "chrome/browser/content_settings/permission_context_base.h" | 7 #include "chrome/browser/content_settings/permission_context_base.h" |
8 #include "chrome/browser/content_settings/permission_context_uma_util.h" | 8 #include "chrome/browser/content_settings/permission_context_uma_util.h" |
9 #include "grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
10 #include "grit/theme_resources.h" | 10 #include "grit/theme_resources.h" |
11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
13 | 13 |
14 PermissionBubbleRequestImpl::PermissionBubbleRequestImpl( | 14 PermissionBubbleRequestImpl::PermissionBubbleRequestImpl( |
15 const GURL& request_origin, | 15 const GURL& request_origin, |
16 bool user_gesture, | 16 bool user_gesture, |
17 ContentSettingsType type, | 17 ContentSettingsType type, |
18 const std::string& display_languages, | 18 const std::string& display_languages, |
19 const base::Callback<void(bool, bool)> permission_decided_callback, | 19 const base::Callback<void(bool, bool)> permission_decided_callback, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 122 |
123 void PermissionBubbleRequestImpl::Cancelled() { | 123 void PermissionBubbleRequestImpl::Cancelled() { |
124 RegisterActionTaken(); | 124 RegisterActionTaken(); |
125 permission_decided_callback_.Run(false, false); | 125 permission_decided_callback_.Run(false, false); |
126 } | 126 } |
127 | 127 |
128 void PermissionBubbleRequestImpl::RequestFinished() { | 128 void PermissionBubbleRequestImpl::RequestFinished() { |
129 is_finished_ = true; | 129 is_finished_ = true; |
130 delete_callback_.Run(); | 130 delete_callback_.Run(); |
131 } | 131 } |
OLD | NEW |