| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |