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

Side by Side Diff: chrome/renderer/extensions/app_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 "chrome/renderer/extensions/app_hooks_delegate.h" 5 #include "chrome/renderer/extensions/app_hooks_delegate.h"
6 6
7 #include "extensions/renderer/api_request_handler.h" 7 #include "extensions/renderer/bindings/api_request_handler.h"
8 #include "extensions/renderer/api_signature.h" 8 #include "extensions/renderer/bindings/api_signature.h"
9 #include "extensions/renderer/script_context_set.h" 9 #include "extensions/renderer/script_context_set.h"
10 #include "gin/converter.h" 10 #include "gin/converter.h"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 namespace { 14 namespace {
15 15
16 void IsInstalledGetterCallback( 16 void IsInstalledGetterCallback(
17 v8::Local<v8::String> property, 17 v8::Local<v8::String> property,
18 const v8::PropertyCallbackInfo<v8::Value>& info) { 18 const v8::PropertyCallbackInfo<v8::Value>& info) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const std::string& install_state) { 102 const std::string& install_state) {
103 // Note: it's kind of lame that we serialize the install state to a 103 // Note: it's kind of lame that we serialize the install state to a
104 // base::Value here when we're just going to later convert it to v8, but it's 104 // base::Value here when we're just going to later convert it to v8, but it's
105 // not worth the specialization on APIRequestHandler for this oddball API. 105 // not worth the specialization on APIRequestHandler for this oddball API.
106 base::ListValue response; 106 base::ListValue response;
107 response.AppendString(install_state); 107 response.AppendString(install_state);
108 request_handler_->CompleteRequest(request_id, response, std::string()); 108 request_handler_->CompleteRequest(request_id, response, std::string());
109 } 109 }
110 110
111 } // namespace extensions 111 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/app_hooks_delegate.h ('k') | chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698