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

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: 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
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 27 matching lines...) Expand all
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 LoadProgressed(double progress) OVERRIDE; 46 virtual void LoadProgressed(double progress) OVERRIDE;
47 virtual void Close() OVERRIDE; 47 virtual void Close() OVERRIDE;
48 virtual void EmbedderDestroyed() OVERRIDE;
48 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE; 49 virtual void GuestProcessGone(base::TerminationStatus status) OVERRIDE;
49 virtual bool HandleKeyboardEvent( 50 virtual bool HandleKeyboardEvent(
50 const content::NativeWebKeyboardEvent& event) OVERRIDE; 51 const content::NativeWebKeyboardEvent& event) OVERRIDE;
51 virtual void LoadAbort(bool is_top_level, 52 virtual void LoadAbort(bool is_top_level,
52 const GURL& url, 53 const GURL& url,
53 const std::string& error_type) OVERRIDE; 54 const std::string& error_type) OVERRIDE;
54 virtual void RendererResponsive() OVERRIDE; 55 virtual void RendererResponsive() OVERRIDE;
55 virtual void RendererUnresponsive() OVERRIDE; 56 virtual void RendererUnresponsive() OVERRIDE;
56 virtual bool RequestPermission( 57 virtual bool RequestPermission(
57 BrowserPluginPermissionType permission_type, 58 BrowserPluginPermissionType permission_type,
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 int next_permission_request_id_; 151 int next_permission_request_id_;
151 152
152 // A map to store the callback for a request keyed by the request's id. 153 // A map to store the callback for a request keyed by the request's id.
153 typedef std::map<int, PermissionResponseCallback> RequestMap; 154 typedef std::map<int, PermissionResponseCallback> RequestMap;
154 RequestMap pending_permission_requests_; 155 RequestMap pending_permission_requests_;
155 156
156 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 157 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
157 }; 158 };
158 159
159 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ 160 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guestview/guestview.cc ('k') | chrome/browser/guestview/webview/webview_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698