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

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

Issue 1866103002: [Extensions] Expand bindings access checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/test_native_handler.h" 5 #include "extensions/renderer/test_native_handler.h"
6 6
7 #include "extensions/renderer/wake_event_page.h" 7 #include "extensions/renderer/wake_event_page.h"
8 8
9 namespace extensions { 9 namespace extensions {
10 10
11 TestNativeHandler::TestNativeHandler(ScriptContext* context) 11 TestNativeHandler::TestNativeHandler(ScriptContext* context)
12 : ObjectBackedNativeHandler(context) { 12 : ObjectBackedNativeHandler(context) {
13 RouteFunction( 13 RouteFunction(
14 "GetWakeEventPage", 14 "GetWakeEventPage", "test",
15 base::Bind(&TestNativeHandler::GetWakeEventPage, base::Unretained(this))); 15 base::Bind(&TestNativeHandler::GetWakeEventPage, base::Unretained(this)));
16 } 16 }
17 17
18 void TestNativeHandler::GetWakeEventPage( 18 void TestNativeHandler::GetWakeEventPage(
19 const v8::FunctionCallbackInfo<v8::Value>& args) { 19 const v8::FunctionCallbackInfo<v8::Value>& args) {
20 CHECK_EQ(0, args.Length()); 20 CHECK_EQ(0, args.Length());
21 args.GetReturnValue().Set(WakeEventPage::Get()->GetForContext(context())); 21 args.GetReturnValue().Set(WakeEventPage::Get()->GetForContext(context()));
22 } 22 }
23 23
24 } // namespace extensions 24 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/test_features_native_handler.cc ('k') | extensions/renderer/v8_context_native_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698