Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: third_party/WebKit/Source/web/WebMediaDeviceChangeObserver.cpp

Issue 2742573005: Avoid to include IDL-generated headers from EventTarget.h and Node.h (Closed)
Patch Set: . Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "public/web/WebMediaDeviceChangeObserver.h" 5 #include "public/web/WebMediaDeviceChangeObserver.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "modules/mediastream/MediaDevices.h" 8 #include "modules/mediastream/MediaDevices.h"
9 #include "platform/weborigin/SecurityOrigin.h"
9 #include "public/platform/WebSecurityOrigin.h" 10 #include "public/platform/WebSecurityOrigin.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 WebMediaDeviceChangeObserver::WebMediaDeviceChangeObserver() 14 WebMediaDeviceChangeObserver::WebMediaDeviceChangeObserver()
14 : m_private(nullptr) {} 15 : m_private(nullptr) {}
15 16
16 WebMediaDeviceChangeObserver::WebMediaDeviceChangeObserver(bool unused) 17 WebMediaDeviceChangeObserver::WebMediaDeviceChangeObserver(bool unused)
17 : m_private(MediaDevices::create(Document::create())) {} 18 : m_private(MediaDevices::create(Document::create())) {}
18 19
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void WebMediaDeviceChangeObserver::assign( 58 void WebMediaDeviceChangeObserver::assign(
58 const WebMediaDeviceChangeObserver& other) { 59 const WebMediaDeviceChangeObserver& other) {
59 m_private = other.m_private; 60 m_private = other.m_private;
60 } 61 }
61 62
62 void WebMediaDeviceChangeObserver::reset() { 63 void WebMediaDeviceChangeObserver::reset() {
63 m_private.reset(); 64 m_private.reset();
64 } 65 }
65 66
66 } // namespace blink 67 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp ('k') | third_party/WebKit/Source/web/tests/RootScrollerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698