| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <set> | |
| 11 #include <vector> | 10 #include <vector> |
| 12 | 11 |
| 13 #include "base/ref_counted.h" | 12 #include "base/ref_counted.h" |
| 14 #include "gfx/native_widget_types.h" | 13 #include "gfx/native_widget_types.h" |
| 15 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
| 16 | 15 |
| 17 class Browser; | 16 class Browser; |
| 18 class Extension; | 17 class Extension; |
| 19 class ExtensionDOMUI; | |
| 20 class ExtensionFunction; | 18 class ExtensionFunction; |
| 21 class ExtensionHost; | |
| 22 class ListValue; | 19 class ListValue; |
| 23 class Profile; | 20 class Profile; |
| 24 class RenderViewHost; | 21 class RenderViewHost; |
| 25 class RenderViewHostDelegate; | |
| 26 class TabContents; | 22 class TabContents; |
| 27 | 23 |
| 28 // A factory function for creating new ExtensionFunction instances. | 24 // A factory function for creating new ExtensionFunction instances. |
| 29 typedef ExtensionFunction* (*ExtensionFunctionFactory)(); | 25 typedef ExtensionFunction* (*ExtensionFunctionFactory)(); |
| 30 | 26 |
| 31 // ExtensionFunctionDispatcher receives requests to execute functions from | 27 // ExtensionFunctionDispatcher receives requests to execute functions from |
| 32 // Chromium extensions running in a RenderViewHost and dispatches them to the | 28 // Chromium extensions running in a RenderViewHost and dispatches them to the |
| 33 // appropriate handler. It lives entirely on the UI thread. | 29 // appropriate handler. It lives entirely on the UI thread. |
| 34 class ExtensionFunctionDispatcher { | 30 class ExtensionFunctionDispatcher { |
| 35 public: | 31 public: |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 143 |
| 148 // AutomationExtensionFunction requires access to the RenderViewHost | 144 // AutomationExtensionFunction requires access to the RenderViewHost |
| 149 // associated with us. We make it a friend rather than exposing the | 145 // associated with us. We make it a friend rather than exposing the |
| 150 // RenderViewHost as a public method as we wouldn't want everyone to | 146 // RenderViewHost as a public method as we wouldn't want everyone to |
| 151 // start assuming a 1:1 relationship between us and RenderViewHost, | 147 // start assuming a 1:1 relationship between us and RenderViewHost, |
| 152 // whereas AutomationExtensionFunction is by necessity "tight" with us. | 148 // whereas AutomationExtensionFunction is by necessity "tight" with us. |
| 153 friend class AutomationExtensionFunction; | 149 friend class AutomationExtensionFunction; |
| 154 }; | 150 }; |
| 155 | 151 |
| 156 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 152 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| OLD | NEW |