| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |