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

Side by Side Diff: third_party/WebKit/public/web/WebScriptController.h

Issue 1880933002: Begin to enable extension APIs in Extension Service Worker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 /* 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698