OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/extensions/api/messaging/incognito_connectability.h" | 5 #include "chrome/browser/extensions/api/messaging/incognito_connectability.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 case ScopedAlertTracker::ALWAYS_DENY: | 211 case ScopedAlertTracker::ALWAYS_DENY: |
212 OnInteractiveResponse(extension->id(), origin, infobar_manager, | 212 OnInteractiveResponse(extension->id(), origin, infobar_manager, |
213 g_alert_mode); | 213 g_alert_mode); |
214 break; | 214 break; |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 IncognitoConnectability::TabContext::TabContext() : infobar(nullptr) { | 218 IncognitoConnectability::TabContext::TabContext() : infobar(nullptr) { |
219 } | 219 } |
220 | 220 |
| 221 IncognitoConnectability::TabContext::TabContext(const TabContext& other) = |
| 222 default; |
| 223 |
221 IncognitoConnectability::TabContext::~TabContext() { | 224 IncognitoConnectability::TabContext::~TabContext() { |
222 } | 225 } |
223 | 226 |
224 void IncognitoConnectability::OnInteractiveResponse( | 227 void IncognitoConnectability::OnInteractiveResponse( |
225 const std::string& extension_id, | 228 const std::string& extension_id, |
226 const GURL& origin, | 229 const GURL& origin, |
227 InfoBarManager* infobar_manager, | 230 InfoBarManager* infobar_manager, |
228 ScopedAlertTracker::Mode response) { | 231 ScopedAlertTracker::Mode response) { |
229 switch (response) { | 232 switch (response) { |
230 case ScopedAlertTracker::ALWAYS_ALLOW: | 233 case ScopedAlertTracker::ALWAYS_ALLOW: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 BrowserContextKeyedAPIFactory<IncognitoConnectability> > g_factory = | 293 BrowserContextKeyedAPIFactory<IncognitoConnectability> > g_factory = |
291 LAZY_INSTANCE_INITIALIZER; | 294 LAZY_INSTANCE_INITIALIZER; |
292 | 295 |
293 // static | 296 // static |
294 BrowserContextKeyedAPIFactory<IncognitoConnectability>* | 297 BrowserContextKeyedAPIFactory<IncognitoConnectability>* |
295 IncognitoConnectability::GetFactoryInstance() { | 298 IncognitoConnectability::GetFactoryInstance() { |
296 return g_factory.Pointer(); | 299 return g_factory.Pointer(); |
297 } | 300 } |
298 | 301 |
299 } // namespace extensions | 302 } // namespace extensions |
OLD | NEW |