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

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

Issue 10114015: Fix bug where transient pages would miss events dispatched while it was (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void Close(); 182 void Close();
183 183
184 // Const version of below function. 184 // Const version of below function.
185 const Browser* GetBrowser() const; 185 const Browser* GetBrowser() const;
186 186
187 // ExtensionFunctionDispatcher::Delegate 187 // ExtensionFunctionDispatcher::Delegate
188 virtual Browser* GetBrowser() OVERRIDE; 188 virtual Browser* GetBrowser() OVERRIDE;
189 189
190 // Message handlers. 190 // Message handlers.
191 void OnRequest(const ExtensionHostMsg_Request_Params& params); 191 void OnRequest(const ExtensionHostMsg_Request_Params& params);
192 void OnEventAck();
193 void OnIncrementLazyKeepaliveCount();
194 void OnDecrementLazyKeepaliveCount();
192 195
193 // Handles keyboard events that were not handled by HandleKeyboardEvent(). 196 // Handles keyboard events that were not handled by HandleKeyboardEvent().
194 // Platform specific implementation may override this method to handle the 197 // Platform specific implementation may override this method to handle the
195 // event in platform specific way. 198 // event in platform specific way.
196 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} 199 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
197 200
198 // Returns true if we're hosting a background page. 201 // Returns true if we're hosting a background page.
199 // This isn't valid until CreateRenderView is called. 202 // This isn't valid until CreateRenderView is called.
200 bool is_background_page() const { return !view(); } 203 bool is_background_page() const { return !view(); }
201 204
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // The relevant WebContents associated with this ExtensionHost, if any. 249 // The relevant WebContents associated with this ExtensionHost, if any.
247 content::WebContents* associated_web_contents_; 250 content::WebContents* associated_web_contents_;
248 251
249 // Used to measure how long it's been since the host was created. 252 // Used to measure how long it's been since the host was created.
250 PerfTimer since_created_; 253 PerfTimer since_created_;
251 254
252 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 255 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
253 }; 256 };
254 257
255 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 258 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698