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

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

Issue 13604005: Prevent chrome.app JSON schema from loading on every page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // Sets up the host permissions for |extension|. 186 // Sets up the host permissions for |extension|.
187 void InitOriginPermissions(const Extension* extension); 187 void InitOriginPermissions(const Extension* extension);
188 void AddOrRemoveOriginPermissions( 188 void AddOrRemoveOriginPermissions(
189 UpdatedExtensionPermissionsInfo::Reason reason, 189 UpdatedExtensionPermissionsInfo::Reason reason,
190 const Extension* extension, 190 const Extension* extension,
191 const URLPatternSet& origins); 191 const URLPatternSet& origins);
192 192
193 void RegisterNativeHandlers(ModuleSystem* module_system, 193 void RegisterNativeHandlers(ModuleSystem* module_system,
194 ChromeV8Context* context); 194 ChromeV8Context* context);
195 void RegisterSchemaGeneratedBindings(ModuleSystem* module_system, 195 void RegisterSchemaGeneratedBindings(ModuleSystem* module_system,
196 ChromeV8Context* context, 196 ChromeV8Context* context);
197 v8::Handle<v8::Context> v8_context);
198 197
199 // Inserts static source code into |source_map_|. 198 // Inserts static source code into |source_map_|.
200 void PopulateSourceMap(); 199 void PopulateSourceMap();
201 200
202 // Inserts BindingInstallers into |lazy_bindings_map_|. 201 // Inserts BindingInstallers into |lazy_bindings_map_|.
203 void PopulateLazyBindingsMap(); 202 void PopulateLazyBindingsMap();
204 203
205 // Sets up the bindings for the given api. 204 // Sets up the bindings for the given api.
206 void InstallBindings(ModuleSystem* module_system, 205 void InstallBindings(ModuleSystem* module_system,
207 v8::Handle<v8::Context> v8_context, 206 v8::Handle<v8::Context> v8_context,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 267
269 // Sends API requests to the extension host. 268 // Sends API requests to the extension host.
270 scoped_ptr<RequestSender> request_sender_; 269 scoped_ptr<RequestSender> request_sender_;
271 270
272 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 271 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
273 }; 272 };
274 273
275 } // namespace extensions 274 } // namespace extensions
276 275
277 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ 276 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/chrome_v8_context.cc ('k') | chrome/renderer/extensions/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698