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

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

Issue 2947463002: [Extensions Bindings] Add a bindings/ subdirectory under renderer (Closed)
Patch Set: . Created 3 years, 5 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/declarative_content_hooks_delegate.h" 5 #include "extensions/renderer/declarative_content_hooks_delegate.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "extensions/common/api/declarative/declarative_constants.h" 9 #include "extensions/common/api/declarative/declarative_constants.h"
10 #include "extensions/renderer/api_type_reference_map.h" 10 #include "extensions/renderer/bindings/api_type_reference_map.h"
11 #include "extensions/renderer/argument_spec.h" 11 #include "extensions/renderer/bindings/argument_spec.h"
12 #include "gin/arguments.h" 12 #include "gin/arguments.h"
13 #include "gin/converter.h" 13 #include "gin/converter.h"
14 #include "third_party/WebKit/public/platform/WebString.h" 14 #include "third_party/WebKit/public/platform/WebString.h"
15 #include "third_party/WebKit/public/web/WebSelector.h" 15 #include "third_party/WebKit/public/web/WebSelector.h"
16 16
17 namespace extensions { 17 namespace extensions {
18 18
19 namespace { 19 namespace {
20 20
21 void CallbackHelper(const v8::FunctionCallbackInfo<v8::Value>& info) { 21 void CallbackHelper(const v8::FunctionCallbackInfo<v8::Value>& info) {
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 try_catch.ReThrow(); 237 try_catch.ReThrow();
238 return; 238 return;
239 } 239 }
240 } 240 }
241 241
242 if (!success) 242 if (!success)
243 arguments.ThrowTypeError("Invalid invocation: " + error); 243 arguments.ThrowTypeError("Invalid invocation: " + error);
244 } 244 }
245 245
246 } // namespace extensions 246 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/renderer/declarative_content_hooks_delegate.h ('k') | extensions/renderer/declarative_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698