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

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

Issue 10896032: HTML titlebars for v2 apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: kludge test fix for mac Created 8 years, 3 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 Feature::Context context_type() const { 54 Feature::Context context_type() const {
55 return context_type_; 55 return context_type_;
56 } 56 }
57 57
58 void set_module_system(scoped_ptr<ModuleSystem> module_system) { 58 void set_module_system(scoped_ptr<ModuleSystem> module_system) {
59 module_system_ = module_system.Pass(); 59 module_system_ = module_system.Pass();
60 } 60 }
61 61
62 ModuleSystem* module_system() { return module_system_.get(); }
63
62 // Returns the ID of the extension associated with this context, or empty 64 // Returns the ID of the extension associated with this context, or empty
63 // string if there is no such extension. 65 // string if there is no such extension.
64 std::string GetExtensionID(); 66 std::string GetExtensionID();
65 67
66 // Returns a special Chrome-specific hidden object that is associated with a 68 // Returns a special Chrome-specific hidden object that is associated with a
67 // context, but not reachable from the JavaScript in that context. This is 69 // context, but not reachable from the JavaScript in that context. This is
68 // used by our v8::Extension implementations as a way to share code and as a 70 // used by our v8::Extension implementations as a way to share code and as a
69 // bridge between C++ and JavaScript. 71 // bridge between C++ and JavaScript.
70 static v8::Handle<v8::Value> GetOrCreateChromeHidden( 72 static v8::Handle<v8::Value> GetOrCreateChromeHidden(
71 v8::Handle<v8::Context> context); 73 v8::Handle<v8::Context> context);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 129
128 // The extension APIs available to this context. 130 // The extension APIs available to this context.
129 scoped_ptr<std::set<std::string> > available_extension_apis_; 131 scoped_ptr<std::set<std::string> > available_extension_apis_;
130 132
131 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context); 133 DISALLOW_COPY_AND_ASSIGN(ChromeV8Context);
132 }; 134 };
133 135
134 } // namespace extensions 136 } // namespace extensions
135 137
136 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_ 138 #endif // CHROME_RENDERER_EXTENSIONS_CHROME_V8_CONTEXT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/app_window_custom_bindings.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698