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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/V8DebuggerScript.cpp

Issue 2246233002: [DevTools] Move platform/v8_inspector classes under v8_inspector namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 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 "platform/v8_inspector/V8DebuggerScript.h" 5 #include "platform/v8_inspector/V8DebuggerScript.h"
6 6
7 #include "platform/v8_inspector/V8StringUtil.h" 7 #include "platform/v8_inspector/V8StringUtil.h"
8 8
9 namespace blink { 9 namespace v8_inspector {
10 10
11 static const char hexDigits[17] = "0123456789ABCDEF"; 11 static const char hexDigits[17] = "0123456789ABCDEF";
12 12
13 static void appendUnsignedAsHex(unsigned number, String16Builder* destination) 13 static void appendUnsignedAsHex(unsigned number, String16Builder* destination)
14 { 14 {
15 for (size_t i = 0; i < 8; ++i) { 15 for (size_t i = 0; i < 8; ++i) {
16 UChar c = hexDigits[number & 0xF]; 16 UChar c = hexDigits[number & 0xF];
17 destination->append(c); 17 destination->append(c);
18 number >>= 4; 18 number >>= 4;
19 } 19 }
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 { 110 {
111 m_sourceMappingURL = sourceMappingURL; 111 m_sourceMappingURL = sourceMappingURL;
112 } 112 }
113 113
114 void V8DebuggerScript::setSource(v8::Isolate* isolate, v8::Local<v8::String> sou rce) 114 void V8DebuggerScript::setSource(v8::Isolate* isolate, v8::Local<v8::String> sou rce)
115 { 115 {
116 m_source.Reset(isolate, source); 116 m_source.Reset(isolate, source);
117 m_hash = calculateHash(toProtocolString(source)); 117 m_hash = calculateHash(toProtocolString(source));
118 } 118 }
119 119
120 } // namespace blink 120 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698