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

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

Issue 23514016: <webview>: Cleanup WebRequest event listeners when embedder destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed WebRequest unit test 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
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/process/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // Request the delegate to close this guest, and do whatever cleanup it needs 33 // Request the delegate to close this guest, and do whatever cleanup it needs
34 // to do. 34 // to do.
35 virtual void Close() {} 35 virtual void Close() {}
36 36
37 // Informs the delegate that the guest render process is gone. |status| 37 // Informs the delegate that the guest render process is gone. |status|
38 // indicates whether the guest was killed, crashed, or was terminated 38 // indicates whether the guest was killed, crashed, or was terminated
39 // gracefully. 39 // gracefully.
40 virtual void GuestProcessGone(base::TerminationStatus status) {} 40 virtual void GuestProcessGone(base::TerminationStatus status) {}
41 41
42 // Informs the delegate that the embedder has been destroyed.
43 virtual void EmbedderDestroyed() {}
44
42 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 45 virtual bool HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
43 46
44 // Notification that a load in the guest resulted in abort. Note that |url| 47 // Notification that a load in the guest resulted in abort. Note that |url|
45 // may be invalid. 48 // may be invalid.
46 virtual void LoadAbort(bool is_top_level, 49 virtual void LoadAbort(bool is_top_level,
47 const GURL& url, 50 const GURL& url,
48 const std::string& error_type) {} 51 const std::string& error_type) {}
49 52
50 // Notification that the page has made some progress loading. |progress| is a 53 // Notification that the page has made some progress loading. |progress| is a
51 // value between 0.0 (nothing loaded) and 1.0 (page loaded completely). 54 // value between 0.0 (nothing loaded) and 1.0 (page loaded completely).
(...skipping 19 matching lines...) Expand all
71 const PermissionResponseCallback& callback); 74 const PermissionResponseCallback& callback);
72 75
73 // Notifies that the content size of the guest has changed in autosize mode. 76 // Notifies that the content size of the guest has changed in autosize mode.
74 virtual void SizeChanged(const gfx::Size& old_size, 77 virtual void SizeChanged(const gfx::Size& old_size,
75 const gfx::Size& new_size) {} 78 const gfx::Size& new_size) {}
76 }; 79 };
77 80
78 } // namespace content 81 } // namespace content
79 82
80 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_ 83 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_PLUGIN_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698