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

Side by Side Diff: extensions/renderer/utils_native_handler.cc

Issue 1769273004: Remove V8RecrusionScope, cleanup call sites. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 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
« no previous file with comments | « extensions/renderer/script_context.cc ('k') | extensions/renderer/v8_helpers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "extensions/renderer/utils_native_handler.h" 5 #include "extensions/renderer/utils_native_handler.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "extensions/renderer/script_context.h" 9 #include "extensions/renderer/script_context.h"
10 #include "third_party/WebKit/public/web/WebScopedMicrotaskSuppression.h"
11 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h" 10 #include "third_party/WebKit/public/web/WebSerializedScriptValue.h"
12 11
13 namespace extensions { 12 namespace extensions {
14 13
15 UtilsNativeHandler::UtilsNativeHandler(ScriptContext* context) 14 UtilsNativeHandler::UtilsNativeHandler(ScriptContext* context)
16 : ObjectBackedNativeHandler(context) { 15 : ObjectBackedNativeHandler(context) {
17 RouteFunction("createClassWrapper", 16 RouteFunction("createClassWrapper",
18 base::Bind(&UtilsNativeHandler::CreateClassWrapper, 17 base::Bind(&UtilsNativeHandler::CreateClassWrapper,
19 base::Unretained(this))); 18 base::Unretained(this)));
20 RouteFunction( 19 RouteFunction(
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 85 }
87 86
88 void UtilsNativeHandler::DeepCopy( 87 void UtilsNativeHandler::DeepCopy(
89 const v8::FunctionCallbackInfo<v8::Value>& args) { 88 const v8::FunctionCallbackInfo<v8::Value>& args) {
90 CHECK_EQ(1, args.Length()); 89 CHECK_EQ(1, args.Length());
91 args.GetReturnValue().Set( 90 args.GetReturnValue().Set(
92 blink::WebSerializedScriptValue::serialize(args[0]).deserialize()); 91 blink::WebSerializedScriptValue::serialize(args[0]).deserialize());
93 } 92 }
94 93
95 } // namespace extensions 94 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/script_context.cc ('k') | extensions/renderer/v8_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698