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

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

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 years, 3 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 "platform/v8_inspector/V8InternalValueType.h" 5 #include "platform/v8_inspector/V8InternalValueType.h"
6 6
7 #include "platform/v8_inspector/V8StringUtil.h" 7 #include "platform/v8_inspector/ProtocolPlatform.h"
8 #include "platform/v8_inspector/StringUtil.h"
8 9
9 namespace v8_inspector { 10 namespace v8_inspector {
10 11
11 namespace { 12 namespace {
12 13
13 v8::Local<v8::Private> internalSubtypePrivate(v8::Isolate* isolate) 14 v8::Local<v8::Private> internalSubtypePrivate(v8::Isolate* isolate)
14 { 15 {
15 return v8::Private::ForApi(isolate, toV8StringInternalized(isolate, "V8Inter nalType#internalSubtype")); 16 return v8::Private::ForApi(isolate, toV8StringInternalized(isolate, "V8Inter nalType#internalSubtype"));
16 } 17 }
17 18
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 v8::Local<v8::Private> privateValue = internalSubtypePrivate(isolate); 63 v8::Local<v8::Private> privateValue = internalSubtypePrivate(isolate);
63 if (!object->HasPrivate(context, privateValue).FromMaybe(false)) 64 if (!object->HasPrivate(context, privateValue).FromMaybe(false))
64 return v8::Null(isolate); 65 return v8::Null(isolate);
65 v8::Local<v8::Value> subtypeValue; 66 v8::Local<v8::Value> subtypeValue;
66 if (!object->GetPrivate(context, privateValue).ToLocal(&subtypeValue) || !su btypeValue->IsString()) 67 if (!object->GetPrivate(context, privateValue).ToLocal(&subtypeValue) || !su btypeValue->IsString())
67 return v8::Null(isolate); 68 return v8::Null(isolate);
68 return subtypeValue; 69 return subtypeValue;
69 } 70 }
70 71
71 } // namespace v8_inspector 72 } // namespace v8_inspector
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698