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

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 "gin/arguments.h" 13 #include "gin/arguments.h"
14 #include "gin/handle.h" 14 #include "gin/handle.h"
15 #include "gin/object_template_builder.h" 15 #include "gin/object_template_builder.h"
16 #include "gin/wrappable.h" 16 #include "gin/wrappable.h"
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 namespace { 20 namespace {
21 21
22 #define DEFINE_STORAGE_AREA_HANDLERS() \ 22 #define DEFINE_STORAGE_AREA_HANDLERS() \
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 return; 195 return;
196 } 196 }
197 197
198 converted_arguments->Insert(0u, base::MakeUnique<base::Value>(name_)); 198 converted_arguments->Insert(0u, base::MakeUnique<base::Value>(name_));
199 request_handler_->StartRequest( 199 request_handler_->StartRequest(
200 context, "storage." + method_name, std::move(converted_arguments), 200 context, "storage." + method_name, std::move(converted_arguments),
201 callback, v8::Local<v8::Function>(), binding::RequestThread::UI); 201 callback, v8::Local<v8::Function>(), binding::RequestThread::UI);
202 } 202 }
203 203
204 } // namespace extensions 204 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698