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

Side by Side Diff: extensions/renderer/storage_area.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/storage_area.h" 5 #include "extensions/renderer/storage_area.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 "extensions/common/api/storage.h" 9 #include "extensions/common/api/storage.h"
10 #include "extensions/renderer/api_request_handler.h" 10 #include "extensions/renderer/bindings/api_request_handler.h"
11 #include "extensions/renderer/api_signature.h" 11 #include "extensions/renderer/bindings/api_signature.h"
12 #include "extensions/renderer/api_type_reference_map.h" 12 #include "extensions/renderer/bindings/api_type_reference_map.h"
13 #include "extensions/renderer/binding_access_checker.h" 13 #include "extensions/renderer/bindings/binding_access_checker.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 #include "gin/wrappable.h" 17 #include "gin/wrappable.h"
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 namespace { 21 namespace {
22 22
23 #define DEFINE_STORAGE_AREA_HANDLERS() \ 23 #define DEFINE_STORAGE_AREA_HANDLERS() \
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 return; 211 return;
212 } 212 }
213 213
214 converted_arguments->Insert(0u, base::MakeUnique<base::Value>(name_)); 214 converted_arguments->Insert(0u, base::MakeUnique<base::Value>(name_));
215 request_handler_->StartRequest( 215 request_handler_->StartRequest(
216 context, full_method_name, std::move(converted_arguments), callback, 216 context, full_method_name, std::move(converted_arguments), callback,
217 v8::Local<v8::Function>(), binding::RequestThread::UI); 217 v8::Local<v8::Function>(), binding::RequestThread::UI);
218 } 218 }
219 219
220 } // namespace extensions 220 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/native_extension_bindings_system_unittest.cc ('k') | extensions/renderer/web_request_hooks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698