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

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

Issue 9838044: Make the chrome.webstore bindings load lazily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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
« no previous file with comments | « no previous file | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_EXTENSION_DISPATCHER_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 6 #define CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 97 }
98 bool IsAdblockPlusWithWebRequestInstalled() const { 98 bool IsAdblockPlusWithWebRequestInstalled() const {
99 return webrequest_adblock_plus_; 99 return webrequest_adblock_plus_;
100 } 100 }
101 bool IsOtherExtensionWithWebRequestInstalled() const { 101 bool IsOtherExtensionWithWebRequestInstalled() const {
102 return webrequest_other_; 102 return webrequest_other_;
103 } 103 }
104 104
105 private: 105 private:
106 friend class RenderViewTest; 106 friend class RenderViewTest;
107 typedef void (*BindingInstaller)(ModuleSystem* module_system,
108 v8::Handle<v8::Object> chrome,
109 v8::Handle<v8::Object> chrome_hidden);
107 110
108 // RenderProcessObserver implementation: 111 // RenderProcessObserver implementation:
109 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; 112 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
110 virtual void WebKitInitialized() OVERRIDE; 113 virtual void WebKitInitialized() OVERRIDE;
111 virtual void IdleNotification() OVERRIDE; 114 virtual void IdleNotification() OVERRIDE;
112 115
113 void OnMessageInvoke(const std::string& extension_id, 116 void OnMessageInvoke(const std::string& extension_id,
114 const std::string& function_name, 117 const std::string& function_name,
115 const base::ListValue& args, 118 const base::ListValue& args,
116 const GURL& event_url, 119 const GURL& event_url,
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 205
203 ResourceBundleSourceMap source_map_; 206 ResourceBundleSourceMap source_map_;
204 207
205 // Cache for the v8 representation of extension API schemas. 208 // Cache for the v8 representation of extension API schemas.
206 extensions::V8SchemaRegistry v8_schema_registry_; 209 extensions::V8SchemaRegistry v8_schema_registry_;
207 210
208 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher); 211 DISALLOW_COPY_AND_ASSIGN(ExtensionDispatcher);
209 }; 212 };
210 213
211 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_ 214 #endif // CHROME_RENDERER_EXTENSIONS_EXTENSION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/extensions/extension_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698