| OLD | NEW |
| 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_BROWSER_EXTENSION_HOST_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // Actually create the RenderView for this host. See CreateRenderViewSoon. | 133 // Actually create the RenderView for this host. See CreateRenderViewSoon. |
| 134 void CreateRenderViewNow(); | 134 void CreateRenderViewNow(); |
| 135 | 135 |
| 136 // Message handlers. | 136 // Message handlers. |
| 137 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 137 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 138 void OnEventAck(); | 138 void OnEventAck(); |
| 139 void OnIncrementLazyKeepaliveCount(); | 139 void OnIncrementLazyKeepaliveCount(); |
| 140 void OnDecrementLazyKeepaliveCount(); | 140 void OnDecrementLazyKeepaliveCount(); |
| 141 | 141 |
| 142 // ExtensionFunctionDispatcher::Delegate |
| 143 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; |
| 144 |
| 142 // Delegate for functionality that cannot exist in the extensions module. | 145 // Delegate for functionality that cannot exist in the extensions module. |
| 143 scoped_ptr<ExtensionHostDelegate> delegate_; | 146 scoped_ptr<ExtensionHostDelegate> delegate_; |
| 144 | 147 |
| 145 // The extension that we're hosting in this view. | 148 // The extension that we're hosting in this view. |
| 146 const Extension* extension_; | 149 const Extension* extension_; |
| 147 | 150 |
| 148 // Id of extension that we're hosting in this view. | 151 // Id of extension that we're hosting in this view. |
| 149 const std::string extension_id_; | 152 const std::string extension_id_; |
| 150 | 153 |
| 151 // The browser context that this host is tied to. | 154 // The browser context that this host is tied to. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 177 | 180 |
| 178 // Used to measure how long it's been since the host was created. | 181 // Used to measure how long it's been since the host was created. |
| 179 base::ElapsedTimer since_created_; | 182 base::ElapsedTimer since_created_; |
| 180 | 183 |
| 181 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 184 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
| 182 }; | 185 }; |
| 183 | 186 |
| 184 } // namespace extensions | 187 } // namespace extensions |
| 185 | 188 |
| 186 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 189 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
| OLD | NEW |