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

Side by Side Diff: chrome/browser/guestview/webview/webview_guest.h

Issue 23514016: <webview>: Cleanup WebRequest event listeners when embedder destroyed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More fixes 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 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 CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ 5 #ifndef CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_
6 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ 6 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "chrome/browser/extensions/tab_helper.h" 9 #include "chrome/browser/extensions/tab_helper.h"
10 #include "chrome/browser/guestview/guestview.h" 10 #include "chrome/browser/guestview/guestview.h"
(...skipping 26 matching lines...) Expand all
37 virtual GuestView::Type GetViewType() const OVERRIDE; 37 virtual GuestView::Type GetViewType() const OVERRIDE;
38 virtual WebViewGuest* AsWebView() OVERRIDE; 38 virtual WebViewGuest* AsWebView() OVERRIDE;
39 virtual AdViewGuest* AsAdView() OVERRIDE; 39 virtual AdViewGuest* AsAdView() OVERRIDE;
40 40
41 // GuestDelegate implementation. 41 // GuestDelegate implementation.
42 virtual void AddMessageToConsole(int32 level, 42 virtual void AddMessageToConsole(int32 level,
43 const string16& message, 43 const string16& message,
44 int32 line_no, 44 int32 line_no,
45 const string16& source_id) OVERRIDE; 45 const string16& source_id) OVERRIDE;
46 virtual void Close() OVERRIDE; 46 virtual void Close() OVERRIDE;
47 virtual void EmbedderDestroyed() OVERRIDE;
47 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE; 48 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE;
48 virtual bool HandleKeyboardEvent( 49 virtual bool HandleKeyboardEvent(
49 const content::NativeWebKeyboardEvent& event) OVERRIDE; 50 const content::NativeWebKeyboardEvent& event) OVERRIDE;
50 virtual void LoadAbort(bool is_top_level, 51 virtual void LoadAbort(bool is_top_level,
51 const GURL& url, 52 const GURL& url,
52 const std::string& error_type) OVERRIDE; 53 const std::string& error_type) OVERRIDE;
53 virtual void RendererResponsive() OVERRIDE; 54 virtual void RendererResponsive() OVERRIDE;
54 virtual void RendererUnresponsive() OVERRIDE; 55 virtual void RendererUnresponsive() OVERRIDE;
55 virtual bool RequestPermission( 56 virtual bool RequestPermission(
56 BrowserPluginPermissionType permission_type, 57 BrowserPluginPermissionType permission_type,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 int next_permission_request_id_; 150 int next_permission_request_id_;
150 151
151 // A map to store the callback for a request keyed by the request's id. 152 // A map to store the callback for a request keyed by the request's id.
152 typedef std::map<int, PermissionResponseCallback> RequestMap; 153 typedef std::map<int, PermissionResponseCallback> RequestMap;
153 RequestMap pending_permission_requests_; 154 RequestMap pending_permission_requests_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 156 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
156 }; 157 };
157 158
158 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ 159 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698