| OLD | NEW |
| 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 const std::string& api); | 226 const std::string& api); |
| 227 | 227 |
| 228 // Determines whether |frame| is loading a platform app resource URL. (this | 228 // Determines whether |frame| is loading a platform app resource URL. (this |
| 229 // evaluates to true for iframes in platform apps and sandboxed resources that | 229 // evaluates to true for iframes in platform apps and sandboxed resources that |
| 230 // are not in the same origin). | 230 // are not in the same origin). |
| 231 bool IsWithinPlatformApp(const WebKit::WebFrame* frame); | 231 bool IsWithinPlatformApp(const WebKit::WebFrame* frame); |
| 232 | 232 |
| 233 // Returns the Feature::Context type of context for a JavaScript context. | 233 // Returns the Feature::Context type of context for a JavaScript context. |
| 234 Feature::Context ClassifyJavaScriptContext(const std::string& extension_id, | 234 Feature::Context ClassifyJavaScriptContext(const std::string& extension_id, |
| 235 int extension_group, | 235 int extension_group, |
| 236 const ExtensionURLInfo& url_info); | 236 const GURL& url); |
| 237 | 237 |
| 238 // Gets |field| from |object| or creates it as an empty object if it doesn't | 238 // Gets |field| from |object| or creates it as an empty object if it doesn't |
| 239 // exist. | 239 // exist. |
| 240 v8::Handle<v8::Object> GetOrCreateObject(v8::Handle<v8::Object> object, | 240 v8::Handle<v8::Object> GetOrCreateObject(v8::Handle<v8::Object> object, |
| 241 const std::string& field); | 241 const std::string& field); |
| 242 | 242 |
| 243 // True if this renderer is running extensions. | 243 // True if this renderer is running extensions. |
| 244 bool is_extension_process_; | 244 bool is_extension_process_; |
| 245 | 245 |
| 246 // Contains all loaded extensions. This is essentially the renderer | 246 // Contains all loaded extensions. This is essentially the renderer |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // The platforms system font family and size; | 294 // The platforms system font family and size; |
| 295 std::string system_font_family_; | 295 std::string system_font_family_; |
| 296 std::string system_font_size_; | 296 std::string system_font_size_; |
| 297 | 297 |
| 298 DISALLOW_COPY_AND_ASSIGN(Dispatcher); | 298 DISALLOW_COPY_AND_ASSIGN(Dispatcher); |
| 299 }; | 299 }; |
| 300 | 300 |
| 301 } // namespace extensions | 301 } // namespace extensions |
| 302 | 302 |
| 303 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ | 303 #endif // CHROME_RENDERER_EXTENSIONS_DISPATCHER_H_ |
| OLD | NEW |