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

Side by Side Diff: Source/modules/netinfo/NetworkInformation.cpp

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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 "config.h" 5 #include "config.h"
6 #include "modules/netinfo/NetworkInformation.h" 6 #include "modules/netinfo/NetworkInformation.h"
7 7
8 #include "core/dom/ExecutionContext.h" 8 #include "core/dom/ExecutionContext.h"
9 #include "core/events/Event.h" 9 #include "core/events/Event.h"
10 #include "core/page/NetworkStateNotifier.h" 10 #include "core/page/NetworkStateNotifier.h"
(...skipping 19 matching lines...) Expand all
30 return "none"; 30 return "none";
31 case blink::ConnectionTypeUnknown: 31 case blink::ConnectionTypeUnknown:
32 return "unknown"; 32 return "unknown";
33 } 33 }
34 ASSERT_NOT_REACHED(); 34 ASSERT_NOT_REACHED();
35 return "none"; 35 return "none";
36 } 36 }
37 37
38 } // namespace 38 } // namespace
39 39
40 namespace WebCore { 40 namespace blink {
41 41
42 PassRefPtrWillBeRawPtr<NetworkInformation> NetworkInformation::create(ExecutionC ontext* context) 42 PassRefPtrWillBeRawPtr<NetworkInformation> NetworkInformation::create(ExecutionC ontext* context)
43 { 43 {
44 RefPtrWillBeRawPtr<NetworkInformation> connection(adoptRefWillBeRefCountedGa rbageCollected(new NetworkInformation(context))); 44 RefPtrWillBeRawPtr<NetworkInformation> connection(adoptRefWillBeRefCountedGa rbageCollected(new NetworkInformation(context)));
45 connection->suspendIfNeeded(); 45 connection->suspendIfNeeded();
46 return connection.release(); 46 return connection.release();
47 } 47 }
48 48
49 NetworkInformation::~NetworkInformation() 49 NetworkInformation::~NetworkInformation()
50 { 50 {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 NetworkInformation::NetworkInformation(ExecutionContext* context) 143 NetworkInformation::NetworkInformation(ExecutionContext* context)
144 : ActiveDOMObject(context) 144 : ActiveDOMObject(context)
145 , m_type(networkStateNotifier().connectionType()) 145 , m_type(networkStateNotifier().connectionType())
146 , m_observing(false) 146 , m_observing(false)
147 , m_contextStopped(false) 147 , m_contextStopped(false)
148 { 148 {
149 ScriptWrappable::init(this); 149 ScriptWrappable::init(this);
150 } 150 }
151 151
152 } // namespace WebCore 152 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/netinfo/NetworkInformation.h ('k') | Source/modules/netinfo/WorkerNavigatorNetworkInformation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698