| 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 "content/browser/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 base::Unretained(this))); | 454 base::Unretained(this))); |
| 455 #if defined(OS_ANDROID) | 455 #if defined(OS_ANDROID) |
| 456 media_web_contents_observer_.reset(new MediaWebContentsObserverAndroid(this)); | 456 media_web_contents_observer_.reset(new MediaWebContentsObserverAndroid(this)); |
| 457 #else | 457 #else |
| 458 media_web_contents_observer_.reset(new MediaWebContentsObserver(this)); | 458 media_web_contents_observer_.reset(new MediaWebContentsObserver(this)); |
| 459 #endif | 459 #endif |
| 460 #if defined (ENABLE_PLUGINS) | 460 #if defined (ENABLE_PLUGINS) |
| 461 pepper_playback_observer_.reset(new PepperPlaybackObserver(this)); | 461 pepper_playback_observer_.reset(new PepperPlaybackObserver(this)); |
| 462 #endif | 462 #endif |
| 463 loader_io_thread_notifier_.reset(new LoaderIOThreadNotifier(this)); | 463 loader_io_thread_notifier_.reset(new LoaderIOThreadNotifier(this)); |
| 464 wake_lock_service_context_.reset(new WakeLockServiceContext(this)); | 464 wake_lock_service_context_.reset(new WakeLockServiceContext( |
| 465 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), |
| 466 base::Bind(&WebContentsImpl::GetNativeView, base::Unretained(this)))); |
| 465 } | 467 } |
| 466 | 468 |
| 467 WebContentsImpl::~WebContentsImpl() { | 469 WebContentsImpl::~WebContentsImpl() { |
| 468 is_being_destroyed_ = true; | 470 is_being_destroyed_ = true; |
| 469 | 471 |
| 470 rwh_input_event_router_.reset(); | 472 rwh_input_event_router_.reset(); |
| 471 | 473 |
| 472 for (auto& entry : binding_sets_) | 474 for (auto& entry : binding_sets_) |
| 473 entry.second->CloseAllBindings(); | 475 entry.second->CloseAllBindings(); |
| 474 | 476 |
| (...skipping 4772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5247 dialog_manager_ = dialog_manager; | 5249 dialog_manager_ = dialog_manager; |
| 5248 } | 5250 } |
| 5249 | 5251 |
| 5250 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5252 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
| 5251 auto it = binding_sets_.find(interface_name); | 5253 auto it = binding_sets_.find(interface_name); |
| 5252 if (it != binding_sets_.end()) | 5254 if (it != binding_sets_.end()) |
| 5253 binding_sets_.erase(it); | 5255 binding_sets_.erase(it); |
| 5254 } | 5256 } |
| 5255 | 5257 |
| 5256 } // namespace content | 5258 } // namespace content |
| OLD | NEW |