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

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

Issue 400343002: Add default fonts for extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address kalman's comments Created 6 years, 5 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
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | extensions/renderer/dispatcher.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_RENDERER_DISPATCHER_H_ 5 #ifndef EXTENSIONS_RENDERER_DISPATCHER_H_
6 #define EXTENSIONS_RENDERER_DISPATCHER_H_ 6 #define EXTENSIONS_RENDERER_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 void RegisterBinding(const std::string& api_name, ScriptContext* context); 206 void RegisterBinding(const std::string& api_name, ScriptContext* context);
207 207
208 void RegisterNativeHandlers(ModuleSystem* module_system, 208 void RegisterNativeHandlers(ModuleSystem* module_system,
209 ScriptContext* context); 209 ScriptContext* context);
210 210
211 // Inserts static source code into |source_map_|. 211 // Inserts static source code into |source_map_|.
212 void PopulateSourceMap(); 212 void PopulateSourceMap();
213 213
214 // Returns whether the current renderer hosts a platform app. 214 // Returns whether the current renderer hosts a platform app.
215 bool IsWithinPlatformApp(); 215 bool IsWithinPlatformApp(blink::WebFrame* frame);
216
217 // Returns whether the current renderer hosts an extension.
218 bool IsWithinExtension(blink::WebFrame* frame);
216 219
217 bool IsSandboxedPage(const GURL& url) const; 220 bool IsSandboxedPage(const GURL& url) const;
218 221
219 // Returns the Feature::Context type of context for a JavaScript context. 222 // Returns the Feature::Context type of context for a JavaScript context.
220 Feature::Context ClassifyJavaScriptContext( 223 Feature::Context ClassifyJavaScriptContext(
221 const Extension* extension, 224 const Extension* extension,
222 int extension_group, 225 int extension_group,
223 const GURL& url, 226 const GURL& url,
224 const blink::WebSecurityOrigin& origin); 227 const blink::WebSecurityOrigin& origin);
225 228
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 // the observer is destroyed before the UserScriptSet. 295 // the observer is destroyed before the UserScriptSet.
293 ScopedObserver<UserScriptSet, UserScriptSet::Observer> 296 ScopedObserver<UserScriptSet, UserScriptSet::Observer>
294 user_script_set_observer_; 297 user_script_set_observer_;
295 298
296 DISALLOW_COPY_AND_ASSIGN(Dispatcher); 299 DISALLOW_COPY_AND_ASSIGN(Dispatcher);
297 }; 300 };
298 301
299 } // namespace extensions 302 } // namespace extensions
300 303
301 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_ 304 #endif // EXTENSIONS_RENDERER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/renderer/dispatcher.cc » ('j') | extensions/renderer/dispatcher.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698