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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 void Close(); | 128 void Close(); |
129 | 129 |
130 private: | 130 private: |
131 friend class ProcessCreationQueue; | 131 friend class ProcessCreationQueue; |
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(int message_id); |
139 void OnIncrementLazyKeepaliveCount(); | 139 void OnIncrementLazyKeepaliveCount(); |
140 void OnDecrementLazyKeepaliveCount(); | 140 void OnDecrementLazyKeepaliveCount(); |
141 | 141 |
142 // Delegate for functionality that cannot exist in the extensions module. | 142 // Delegate for functionality that cannot exist in the extensions module. |
143 scoped_ptr<ExtensionHostDelegate> delegate_; | 143 scoped_ptr<ExtensionHostDelegate> delegate_; |
144 | 144 |
145 // The extension that we're hosting in this view. | 145 // The extension that we're hosting in this view. |
146 const Extension* extension_; | 146 const Extension* extension_; |
147 | 147 |
148 // Id of extension that we're hosting in this view. | 148 // Id of extension that we're hosting in this view. |
(...skipping 28 matching lines...) Expand all Loading... |
177 | 177 |
178 // Used to measure how long it's been since the host was created. | 178 // Used to measure how long it's been since the host was created. |
179 base::ElapsedTimer since_created_; | 179 base::ElapsedTimer since_created_; |
180 | 180 |
181 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); | 181 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace extensions | 184 } // namespace extensions |
185 | 185 |
186 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ | 186 #endif // EXTENSIONS_BROWSER_EXTENSION_HOST_H_ |
OLD | NEW |