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

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: yoyo 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void Close(); 181 void Close();
182 182
183 // Const version of below function. 183 // Const version of below function.
184 const Browser* GetBrowser() const; 184 const Browser* GetBrowser() const;
185 185
186 // ExtensionFunctionDispatcher::Delegate 186 // ExtensionFunctionDispatcher::Delegate
187 virtual Browser* GetBrowser() OVERRIDE; 187 virtual Browser* GetBrowser() OVERRIDE;
188 188
189 // Message handlers. 189 // Message handlers.
190 void OnRequest(const ExtensionHostMsg_Request_Params& params); 190 void OnRequest(const ExtensionHostMsg_Request_Params& params);
191 void OnEventAck();
192 void OnIncrementLazyKeepaliveCount();
193 void OnDecrementLazyKeepaliveCount();
191 194
192 // Handles keyboard events that were not handled by HandleKeyboardEvent(). 195 // Handles keyboard events that were not handled by HandleKeyboardEvent().
193 // Platform specific implementation may override this method to handle the 196 // Platform specific implementation may override this method to handle the
194 // event in platform specific way. 197 // event in platform specific way.
195 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {} 198 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
196 199
197 // Returns true if we're hosting a background page. 200 // Returns true if we're hosting a background page.
198 // This isn't valid until CreateRenderView is called. 201 // This isn't valid until CreateRenderView is called.
199 bool is_background_page() const { return !view(); } 202 bool is_background_page() const { return !view(); }
200 203
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // The relevant WebContents associated with this ExtensionHost, if any. 248 // The relevant WebContents associated with this ExtensionHost, if any.
246 content::WebContents* associated_web_contents_; 249 content::WebContents* associated_web_contents_;
247 250
248 // Used to measure how long it's been since the host was created. 251 // Used to measure how long it's been since the host was created.
249 PerfTimer since_created_; 252 PerfTimer since_created_;
250 253
251 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 254 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
252 }; 255 };
253 256
254 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 257 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698