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

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

Issue 23007021: Report Javascript Runtime Errors to the Error Console (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dc_ec_feldman
Patch Set: Created 7 years, 3 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 (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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/test/perftimer.h" 13 #include "base/test/perftimer.h"
14 #include "chrome/browser/extensions/extension_function_dispatcher.h" 14 #include "chrome/browser/extensions/extension_function_dispatcher.h"
15 #include "content/public/browser/javascript_dialog_manager.h" 15 #include "content/public/browser/javascript_dialog_manager.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 #include "content/public/browser/web_contents_delegate.h" 18 #include "content/public/browser/web_contents_delegate.h"
19 #include "content/public/browser/web_contents_observer.h" 19 #include "content/public/browser/web_contents_observer.h"
20 #include "extensions/common/stack_frame.h"
20 #include "extensions/common/view_type.h" 21 #include "extensions/common/view_type.h"
21 22
22 #if defined(TOOLKIT_VIEWS) 23 #if defined(TOOLKIT_VIEWS)
23 #include "chrome/browser/ui/views/extensions/extension_view_views.h" 24 #include "chrome/browser/ui/views/extensions/extension_view_views.h"
24 #elif defined(OS_MACOSX) 25 #elif defined(OS_MACOSX)
25 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h" 26 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h"
26 #elif defined(TOOLKIT_GTK) 27 #elif defined(TOOLKIT_GTK)
27 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" 28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
28 #elif defined(OS_ANDROID) 29 #elif defined(OS_ANDROID)
29 #include "chrome/browser/ui/android/extensions/extension_view_android.h" 30 #include "chrome/browser/ui/android/extensions/extension_view_android.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 #endif 215 #endif
215 216
216 // ExtensionFunctionDispatcher::Delegate 217 // ExtensionFunctionDispatcher::Delegate
217 virtual WindowController* GetExtensionWindowController() const OVERRIDE; 218 virtual WindowController* GetExtensionWindowController() const OVERRIDE;
218 219
219 // Message handlers. 220 // Message handlers.
220 void OnRequest(const ExtensionHostMsg_Request_Params& params); 221 void OnRequest(const ExtensionHostMsg_Request_Params& params);
221 void OnEventAck(); 222 void OnEventAck();
222 void OnIncrementLazyKeepaliveCount(); 223 void OnIncrementLazyKeepaliveCount();
223 void OnDecrementLazyKeepaliveCount(); 224 void OnDecrementLazyKeepaliveCount();
225 void OnDetailedConsoleMessageAdded(
226 const base::string16& message,
227 const base::string16& source,
228 const StackTrace& stack_trace,
229 int32 severity_level);
224 230
225 // Handles keyboard events that were not handled by HandleKeyboardEvent(). 231 // Handles keyboard events that were not handled by HandleKeyboardEvent().
226 // Platform specific implementation may override this method to handle the 232 // Platform specific implementation may override this method to handle the
227 // event in platform specific way. 233 // event in platform specific way.
228 virtual void UnhandledKeyboardEvent( 234 virtual void UnhandledKeyboardEvent(
229 content::WebContents* source, 235 content::WebContents* source,
230 const content::NativeWebKeyboardEvent& event); 236 const content::NativeWebKeyboardEvent& event);
231 237
232 // Returns true if we're hosting a background page. 238 // Returns true if we're hosting a background page.
233 // This isn't valid until CreateRenderView is called. 239 // This isn't valid until CreateRenderView is called.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 285
280 // Used to measure how long it's been since the host was created. 286 // Used to measure how long it's been since the host was created.
281 PerfTimer since_created_; 287 PerfTimer since_created_;
282 288
283 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 289 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
284 }; 290 };
285 291
286 } // namespace extensions 292 } // namespace extensions
287 293
288 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 294 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/error_console/error_console_unittest.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698