Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(790)

Side by Side Diff: extensions/browser/extension_host.h

Issue 823703004: Tracking push events for lucid sleep (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version 2 with NotificationService Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698