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

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

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/chrome_setting.h" 5 #include "extensions/renderer/chrome_setting.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "extensions/renderer/api_event_handler.h" 10 #include "extensions/renderer/bindings/api_event_handler.h"
11 #include "extensions/renderer/api_request_handler.h" 11 #include "extensions/renderer/bindings/api_request_handler.h"
12 #include "extensions/renderer/api_signature.h" 12 #include "extensions/renderer/bindings/api_signature.h"
13 #include "extensions/renderer/api_type_reference_map.h" 13 #include "extensions/renderer/bindings/api_type_reference_map.h"
14 #include "gin/arguments.h" 14 #include "gin/arguments.h"
15 #include "gin/handle.h" 15 #include "gin/handle.h"
16 #include "gin/object_template_builder.h" 16 #include "gin/object_template_builder.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 v8::Local<v8::Object> ChromeSetting::Create( 20 v8::Local<v8::Object> ChromeSetting::Create(
21 v8::Isolate* isolate, 21 v8::Isolate* isolate,
22 const std::string& property_name, 22 const std::string& property_name,
23 const base::ListValue* property_values, 23 const base::ListValue* property_values,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 return; 145 return;
146 } 146 }
147 147
148 converted_arguments->Insert(0u, base::MakeUnique<base::Value>(pref_name_)); 148 converted_arguments->Insert(0u, base::MakeUnique<base::Value>(pref_name_));
149 request_handler_->StartRequest( 149 request_handler_->StartRequest(
150 context, full_name, std::move(converted_arguments), callback, 150 context, full_name, std::move(converted_arguments), callback,
151 v8::Local<v8::Function>(), binding::RequestThread::UI); 151 v8::Local<v8::Function>(), binding::RequestThread::UI);
152 } 152 }
153 153
154 } // namespace extensions 154 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698