| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/media/webrtc_internals.h" | 5 #include "content/browser/media/webrtc_internals.h" |
| 6 | 6 |
| 7 #include "base/path_service.h" | |
| 8 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 9 #include "content/browser/media/webrtc_internals_ui_observer.h" | 8 #include "content/browser/media/webrtc_internals_ui_observer.h" |
| 10 #include "content/browser/web_contents/web_contents_view.h" | 9 #include "content/browser/web_contents/web_contents_view.h" |
| 11 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 12 #include "content/public/browser/content_browser_client.h" | 11 #include "content/public/browser/content_browser_client.h" |
| 13 #include "content/public/browser/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
| 14 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
| 15 #include "content/public/browser/power_save_blocker.h" | 14 #include "content/public/browser/power_save_blocker.h" |
| 16 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
| 17 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 } else if (!peer_connection_data_.empty() && !power_save_blocker_) { | 377 } else if (!peer_connection_data_.empty() && !power_save_blocker_) { |
| 379 DVLOG(1) << ("Preventing the application from being suspended while one or " | 378 DVLOG(1) << ("Preventing the application from being suspended while one or " |
| 380 "more PeerConnections are active."); | 379 "more PeerConnections are active."); |
| 381 power_save_blocker_ = content::PowerSaveBlocker::Create( | 380 power_save_blocker_ = content::PowerSaveBlocker::Create( |
| 382 content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, | 381 content::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
| 383 "WebRTC has active PeerConnections.").Pass(); | 382 "WebRTC has active PeerConnections.").Pass(); |
| 384 } | 383 } |
| 385 } | 384 } |
| 386 | 385 |
| 387 } // namespace content | 386 } // namespace content |
| OLD | NEW |