| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 | 17 |
| 18 class Browser; | 18 class Browser; |
| 19 class ChromeRenderMessageFilter; | 19 class ChromeRenderMessageFilter; |
| 20 class Extension; | 20 class Extension; |
| 21 class ExtensionFunction; | 21 class ExtensionFunction; |
| 22 class ListValue; | |
| 23 class Profile; | 22 class Profile; |
| 24 class RenderViewHost; | 23 class RenderViewHost; |
| 25 class TabContents; | 24 class TabContents; |
| 26 struct ExtensionHostMsg_Request_Params; | 25 struct ExtensionHostMsg_Request_Params; |
| 27 | 26 |
| 28 // A factory function for creating new ExtensionFunction instances. | 27 // A factory function for creating new ExtensionFunction instances. |
| 29 typedef ExtensionFunction* (*ExtensionFunctionFactory)(); | 28 typedef ExtensionFunction* (*ExtensionFunctionFactory)(); |
| 30 | 29 |
| 31 // ExtensionFunctionDispatcher receives requests to execute functions from | 30 // ExtensionFunctionDispatcher receives requests to execute functions from |
| 32 // Chrome extensions running in a RenderViewHost and dispatches them to the | 31 // Chrome extensions running in a RenderViewHost and dispatches them to the |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 static void SendAccessDenied(IPC::Message::Sender* ipc_sender, | 127 static void SendAccessDenied(IPC::Message::Sender* ipc_sender, |
| 129 int routing_id, | 128 int routing_id, |
| 130 int request_id); | 129 int request_id); |
| 131 | 130 |
| 132 Profile* profile_; | 131 Profile* profile_; |
| 133 | 132 |
| 134 Delegate* delegate_; | 133 Delegate* delegate_; |
| 135 }; | 134 }; |
| 136 | 135 |
| 137 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ | 136 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_FUNCTION_DISPATCHER_H_ |
| OLD | NEW |