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

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

Issue 10826199: Properly propagate the current Chrome channel into the Feature system on the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make the default stable Created 8 years, 4 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_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Cache for the v8 representation of extension API schemas. 249 // Cache for the v8 representation of extension API schemas.
250 V8SchemaRegistry v8_schema_registry_; 250 V8SchemaRegistry v8_schema_registry_;
251 251
252 // Bindings that are defined lazily and have BindingInstallers to install 252 // Bindings that are defined lazily and have BindingInstallers to install
253 // them. 253 // them.
254 std::map<std::string, BindingInstaller> lazy_bindings_map_; 254 std::map<std::string, BindingInstaller> lazy_bindings_map_;
255 255
256 // Sends API requests to the extension host. 256 // Sends API requests to the extension host.
257 scoped_ptr<RequestSender> request_sender_; 257 scoped_ptr<RequestSender> request_sender_;
258 258
259 // The current channel. From VersionInfo::GetChannel().
260 // TODO(aa): Remove when we can restrict non-permission APIs to dev-only.
261 int chrome_channel_;
262
263 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 259 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
264 }; 260 };
265 261
266 } // namespace extensions 262 } // namespace extensions
267 263
268 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 264 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698