| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. 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 27 matching lines...) Expand all Loading... |
| 38 } | 38 } |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class WebScriptController { | 42 class WebScriptController { |
| 43 public: | 43 public: |
| 44 // Registers a v8 extension to be available on webpages. Will only affect | 44 // Registers a v8 extension to be available on webpages. Will only affect |
| 45 // v8 contexts initialized after this call. Takes ownership of the | 45 // v8 contexts initialized after this call. Takes ownership of the |
| 46 // v8::Extension object passed. | 46 // v8::Extension object passed. |
| 47 BLINK_EXPORT static void registerExtension(v8::Extension*); | 47 BLINK_EXPORT static void registerExtension(v8::Extension*); |
| 48 // Same as registerExtension, but applies to Service Worker scripts. |
| 49 BLINK_EXPORT static void registerExtensionForServiceWorkerScript(v8::Extensi
on*); |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 WebScriptController(); | 52 WebScriptController(); |
| 51 }; | 53 }; |
| 52 | 54 |
| 53 } // namespace blink | 55 } // namespace blink |
| 54 | 56 |
| 55 #endif | 57 #endif |
| OLD | NEW |