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

Side by Side Diff: chrome/renderer/extensions/chrome_v8_context.h

Issue 11571014: Lazy load chrome.* APIs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apitest.js Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_
6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ 6 #define CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // might be a hosted app in the case that this context is hosting a web URL. 121 // might be a hosted app in the case that this context is hosting a web URL.
122 scoped_refptr<const Extension> extension_; 122 scoped_refptr<const Extension> extension_;
123 123
124 // The type of context. 124 // The type of context.
125 Feature::Context context_type_; 125 Feature::Context context_type_;
126 126
127 // Owns and structures the JS that is injected to set up extension bindings. 127 // Owns and structures the JS that is injected to set up extension bindings.
128 scoped_ptr<ModuleSystem> module_system_; 128 scoped_ptr<ModuleSystem> module_system_;
129 129
130 // The extension APIs available to this context. 130 // The extension APIs available to this context.
131 scoped_ptr<std::set<std::string> > available_extension_apis_; 131 std::set<std::string> available_extension_apis_;
132 bool available_extension_apis_initialized_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context); 134 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
134 }; 135 };
135 136
136 } // namespace extensions 137 } // namespace extensions
137 138
138 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ 139 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698