| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/bindings_utils.h" | 5 #include "chrome/renderer/extensions/bindings_utils.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "chrome/renderer/render_view.h" | 8 #include "chrome/renderer/render_view.h" |
| 9 #include "webkit/api/public/WebFrame.h" | 9 #include "webkit/api/public/WebFrame.h" |
| 10 | 10 |
| 11 using WebKit::WebFrame; | 11 using WebKit::WebFrame; |
| 12 using WebKit::WebView; |
| 12 | 13 |
| 13 namespace bindings_utils { | 14 namespace bindings_utils { |
| 14 | 15 |
| 15 const char* kChromeHidden = "chromeHidden"; | 16 const char* kChromeHidden = "chromeHidden"; |
| 16 const char* kValidateCallbacks = "validateCallbacks"; | 17 const char* kValidateCallbacks = "validateCallbacks"; |
| 17 | 18 |
| 18 struct SingletonData { | 19 struct SingletonData { |
| 19 ContextList contexts; | 20 ContextList contexts; |
| 20 PendingRequestMap pending_requests; | 21 PendingRequestMap pending_requests; |
| 21 }; | 22 }; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 } | 133 } |
| 133 | 134 |
| 134 v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(value); | 135 v8::Local<v8::Function> function = v8::Local<v8::Function>::Cast(value); |
| 135 if (!function.IsEmpty()) | 136 if (!function.IsEmpty()) |
| 136 return function->Call(v8::Object::New(), argc, argv); | 137 return function->Call(v8::Object::New(), argc, argv); |
| 137 | 138 |
| 138 return v8::Undefined(); | 139 return v8::Undefined(); |
| 139 } | 140 } |
| 140 | 141 |
| 141 } // namespace bindings_utils | 142 } // namespace bindings_utils |
| OLD | NEW |