OLD | NEW |
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_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_WEB_CONTENTS_OBSERVER_H__ | 5 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_WEB_CONTENTS_OBSERVER_H__ |
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_WEB_CONTENTS_OBSERVER_H__ | 6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_WEB_CONTENTS_OBSERVER_H__ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 int64 frame_id, | 47 int64 frame_id, |
48 bool is_main_frame, | 48 bool is_main_frame, |
49 const GURL& url, | 49 const GURL& url, |
50 PageTransition transition_type) OVERRIDE; | 50 PageTransition transition_type) OVERRIDE; |
51 | 51 |
52 virtual void RenderViewDeleted( | 52 virtual void RenderViewDeleted( |
53 RenderViewHost* render_view_host) OVERRIDE; | 53 RenderViewHost* render_view_host) OVERRIDE; |
54 | 54 |
55 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; | 55 virtual void RenderViewGone(base::TerminationStatus status) OVERRIDE; |
56 | 56 |
57 virtual void WebContentsDestroyed(WebContents* tab) OVERRIDE; | 57 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; |
58 | 58 |
59 private: | 59 private: |
60 typedef std::map<WebContentsImpl*, int64> GuestMap; | 60 typedef std::map<WebContentsImpl*, int64> GuestMap; |
61 | 61 |
62 void OnOpenChannelToBrowserPlugin(int32 instance_id, | 62 void OnOpenChannelToBrowserPlugin(int32 instance_id, |
63 long long frame_id, | 63 long long frame_id, |
64 const std::string& src, | 64 const std::string& src, |
65 const gfx::Size& size); | 65 const gfx::Size& size); |
66 | 66 |
67 void OnGuestReady(); | 67 void OnGuestReady(); |
(...skipping 17 matching lines...) Expand all Loading... |
85 // An identifier that uniquely identifies a browser plugin container | 85 // An identifier that uniquely identifies a browser plugin container |
86 // within a host. | 86 // within a host. |
87 int instance_id_; | 87 int instance_id_; |
88 | 88 |
89 GuestMap guests_; | 89 GuestMap guests_; |
90 }; | 90 }; |
91 | 91 |
92 } // namespace content | 92 } // namespace content |
93 | 93 |
94 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_WEB_CONTENTS_OBSERVER_H
_ | 94 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_WEB_CONTENTS_OBSERVER_H
_ |
OLD | NEW |