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

Side by Side Diff: content/public/browser/web_contents_observer.h

Issue 1584473004: Migrate ProcessesEventRouter to the new task manager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dispatch onCreated and onExited only for processes with valid child process host IDs Created 4 years, 10 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/process/kill.h" 11 #include "base/process/kill.h"
12 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/navigation_controller.h" 14 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/common/frame_navigate_params.h" 15 #include "content/public/common/frame_navigate_params.h"
16 #include "content/public/common/security_style.h" 16 #include "content/public/common/security_style.h"
17 #include "ipc/ipc_listener.h" 17 #include "ipc/ipc_listener.h"
18 #include "ipc/ipc_sender.h" 18 #include "ipc/ipc_sender.h"
19 #include "third_party/WebKit/public/web/WebInputEvent.h" 19 #include "third_party/WebKit/public/web/WebInputEvent.h"
20 #include "third_party/skia/include/core/SkColor.h" 20 #include "third_party/skia/include/core/SkColor.h"
21 #include "ui/base/page_transition_types.h" 21 #include "ui/base/page_transition_types.h"
22 #include "ui/base/window_open_disposition.h" 22 #include "ui/base/window_open_disposition.h"
23 23
24 namespace content { 24 namespace content {
25 25
26 class NavigationEntry; 26 class NavigationEntry;
27 class NavigationHandle; 27 class NavigationHandle;
28 class RenderFrameHost; 28 class RenderFrameHost;
29 class RenderViewHost; 29 class RenderViewHost;
30 class RenderWidgetHost;
30 class WebContents; 31 class WebContents;
31 class WebContentsImpl; 32 class WebContentsImpl;
32 struct AXEventNotificationDetails; 33 struct AXEventNotificationDetails;
33 struct FaviconURL; 34 struct FaviconURL;
34 struct FrameNavigateParams; 35 struct FrameNavigateParams;
35 struct LoadCommittedDetails; 36 struct LoadCommittedDetails;
36 struct LoadFromMemoryCacheDetails; 37 struct LoadFromMemoryCacheDetails;
37 struct Referrer; 38 struct Referrer;
38 struct ResourceRedirectDetails; 39 struct ResourceRedirectDetails;
39 struct ResourceRequestDetails; 40 struct ResourceRequestDetails;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // choice. 115 // choice.
115 virtual void RenderProcessGone(base::TerminationStatus status) {} 116 virtual void RenderProcessGone(base::TerminationStatus status) {}
116 117
117 // This method is invoked when a WebContents swaps its visible RenderViewHost 118 // This method is invoked when a WebContents swaps its visible RenderViewHost
118 // with another one, possibly changing processes. The RenderViewHost that has 119 // with another one, possibly changing processes. The RenderViewHost that has
119 // been replaced is in |old_host|, which is nullptr if the old RVH was shut 120 // been replaced is in |old_host|, which is nullptr if the old RVH was shut
120 // down. 121 // down.
121 virtual void RenderViewHostChanged(RenderViewHost* old_host, 122 virtual void RenderViewHostChanged(RenderViewHost* old_host,
122 RenderViewHost* new_host) {} 123 RenderViewHost* new_host) {}
123 124
125 // This method is invoked when the process for the current main
126 // RenderFrameHost becomes unresponsive.
127 virtual void OnRendererUnresponsive(RenderWidgetHost* render_widget_host) {}
128
124 // Navigation related events ------------------------------------------------ 129 // Navigation related events ------------------------------------------------
125 130
126 // Called when a navigation started in the WebContents. |navigation_handle| 131 // Called when a navigation started in the WebContents. |navigation_handle|
127 // is unique to a specific navigation. The same |navigation_handle| will be 132 // is unique to a specific navigation. The same |navigation_handle| will be
128 // provided on subsequent calls to DidRedirectNavigation, DidFinishNavigation, 133 // provided on subsequent calls to DidRedirectNavigation, DidFinishNavigation,
129 // and ReadyToCommitNavigation when related to this navigation. Observers 134 // and ReadyToCommitNavigation when related to this navigation. Observers
130 // should clear any references to |navigation_handle| in DidFinishNavigation, 135 // should clear any references to |navigation_handle| in DidFinishNavigation,
131 // just before it is destroyed. 136 // just before it is destroyed.
132 // 137 //
133 // Note that this is fired by navigations in any frame of the WebContents, 138 // Note that this is fired by navigations in any frame of the WebContents,
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 void ResetWebContents(); 490 void ResetWebContents();
486 491
487 WebContentsImpl* web_contents_; 492 WebContentsImpl* web_contents_;
488 493
489 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver); 494 DISALLOW_COPY_AND_ASSIGN(WebContentsObserver);
490 }; 495 };
491 496
492 } // namespace content 497 } // namespace content
493 498
494 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_ 499 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_OBSERVER_H_
OLDNEW
« chrome/common/extensions/api/processes.idl ('K') | « content/public/browser/web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698