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

Side by Side Diff: extensions/renderer/guest_view/guest_view_container.h

Issue 874293004: Ensure that entries are correctly removed from the MimeHandlerViewContainer map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | extensions/renderer/guest_view/guest_view_container.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ 5 #ifndef EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_
6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ 6 #define EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "content/public/renderer/browser_plugin_delegate.h" 9 #include "content/public/renderer/browser_plugin_delegate.h"
10 #include "ipc/ipc_message.h" 10 #include "ipc/ipc_message.h"
(...skipping 10 matching lines...) Expand all
21 21
22 void RenderFrameDestroyed(); 22 void RenderFrameDestroyed();
23 23
24 // BrowserPluginDelegate implementation. 24 // BrowserPluginDelegate implementation.
25 void SetElementInstanceID(int element_instance_id) override; 25 void SetElementInstanceID(int element_instance_id) override;
26 26
27 int element_instance_id() const { return element_instance_id_; } 27 int element_instance_id() const { return element_instance_id_; }
28 int render_view_routing_id() const { return render_view_routing_id_; } 28 int render_view_routing_id() const { return render_view_routing_id_; }
29 content::RenderFrame* render_frame() const { return render_frame_; } 29 content::RenderFrame* render_frame() const { return render_frame_; }
30 30
31 virtual void OnRenderFrameDestroyed() {}
32
31 private: 33 private:
32 class RenderFrameLifetimeObserver; 34 class RenderFrameLifetimeObserver;
33 35
34 int element_instance_id_; 36 int element_instance_id_;
35 const int render_view_routing_id_; 37 const int render_view_routing_id_;
36 content::RenderFrame* render_frame_; 38 content::RenderFrame* render_frame_;
37 scoped_ptr<RenderFrameLifetimeObserver> render_frame_lifetime_observer_; 39 scoped_ptr<RenderFrameLifetimeObserver> render_frame_lifetime_observer_;
38 40
39 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer); 41 DISALLOW_COPY_AND_ASSIGN(GuestViewContainer);
40 }; 42 };
41 43
42 } // namespace extensions 44 } // namespace extensions
43 45
44 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_ 46 #endif // EXTENSIONS_RENDERER_GUEST_VIEW_GUEST_VIEW_CONTAINER_H_
OLDNEW
« no previous file with comments | « no previous file | extensions/renderer/guest_view/guest_view_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698