| OLD | NEW |
| 1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 #include <algorithm> | 32 #include <algorithm> |
| 33 #include <utility> | 33 #include <utility> |
| 34 | 34 |
| 35 #include <v8.h> | 35 #include <v8.h> |
| 36 #include <v8-debug.h> | 36 #include <v8-debug.h> |
| 37 | 37 |
| 38 #include "v8_proxy.h" | 38 #include "v8_proxy.h" |
| 39 #include "v8_index.h" | 39 #include "v8_index.h" |
| 40 #include "v8_binding.h" | 40 #include "v8_binding.h" |
| 41 #include "v8_custom.h" | |
| 42 #include "V8Collection.h" | 41 #include "V8Collection.h" |
| 43 #include "V8DOMWindow.h" | 42 #include "V8DOMWindow.h" |
| 44 | 43 |
| 45 #include "ChromiumBridge.h" | 44 #include "ChromiumBridge.h" |
| 46 #include "CSSMutableStyleDeclaration.h" | 45 #include "CSSMutableStyleDeclaration.h" |
| 47 #include "DOMObjectsInclude.h" | 46 #include "DOMObjectsInclude.h" |
| 48 #include "DocumentLoader.h" | 47 #include "DocumentLoader.h" |
| 49 #include "ScriptController.h" | 48 #include "ScriptController.h" |
| 49 #include "V8CustomBinding.h" |
| 50 #include "V8DOMMap.h" | 50 #include "V8DOMMap.h" |
| 51 | 51 |
| 52 namespace WebCore { | 52 namespace WebCore { |
| 53 | 53 |
| 54 // Static utility context. | 54 // Static utility context. |
| 55 v8::Persistent<v8::Context> V8Proxy::m_utilityContext; | 55 v8::Persistent<v8::Context> V8Proxy::m_utilityContext; |
| 56 | 56 |
| 57 // Static list of registered extensions | 57 // Static list of registered extensions |
| 58 V8ExtensionList V8Proxy::m_extensions; | 58 V8ExtensionList V8Proxy::m_extensions; |
| 59 | 59 |
| (...skipping 3331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3391 } | 3391 } |
| 3392 | 3392 |
| 3393 void V8Proxy::RegisterExtension(v8::Extension* extension, | 3393 void V8Proxy::RegisterExtension(v8::Extension* extension, |
| 3394 const String& schemeRestriction) { | 3394 const String& schemeRestriction) { |
| 3395 v8::RegisterExtension(extension); | 3395 v8::RegisterExtension(extension); |
| 3396 V8ExtensionInfo info = {schemeRestriction, extension}; | 3396 V8ExtensionInfo info = {schemeRestriction, extension}; |
| 3397 m_extensions.push_back(info); | 3397 m_extensions.push_back(info); |
| 3398 } | 3398 } |
| 3399 | 3399 |
| 3400 } // namespace WebCore | 3400 } // namespace WebCore |
| OLD | NEW |