OLD | NEW |
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_GUESTVIEW_H_ | 5 #ifndef CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ |
6 #define CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ | 6 #define CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 | 9 |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 }; | 41 }; |
42 | 42 |
43 explicit GuestView(content::WebContents* guest_web_contents); | 43 explicit GuestView(content::WebContents* guest_web_contents); |
44 | 44 |
45 static GuestView* FromWebContents(content::WebContents* web_contents); | 45 static GuestView* FromWebContents(content::WebContents* web_contents); |
46 | 46 |
47 static GuestView* From(int embedder_process_id, int instance_id); | 47 static GuestView* From(int embedder_process_id, int instance_id); |
48 | 48 |
49 virtual void Attach(content::WebContents* embedder_web_contents, | 49 virtual void Attach(content::WebContents* embedder_web_contents, |
50 const std::string& extension_id, | 50 const std::string& extension_id, |
51 int view_instance_id, | |
52 const base::DictionaryValue& args); | 51 const base::DictionaryValue& args); |
53 | 52 |
54 content::WebContents* embedder_web_contents() const { | 53 content::WebContents* embedder_web_contents() const { |
55 return embedder_web_contents_; | 54 return embedder_web_contents_; |
56 } | 55 } |
57 | 56 |
58 // Returns the guest WebContents. | 57 // Returns the guest WebContents. |
59 content::WebContents* guest_web_contents() const { | 58 content::WebContents* guest_web_contents() const { |
60 return guest_web_contents_; | 59 return guest_web_contents_; |
61 } | 60 } |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 int view_instance_id_; | 107 int view_instance_id_; |
109 | 108 |
110 // This is a queue of Events that are destined to be sent to the embedder once | 109 // This is a queue of Events that are destined to be sent to the embedder once |
111 // the guest is attached to a particular embedder. | 110 // the guest is attached to a particular embedder. |
112 std::queue<Event*> pending_events_; | 111 std::queue<Event*> pending_events_; |
113 | 112 |
114 DISALLOW_COPY_AND_ASSIGN(GuestView); | 113 DISALLOW_COPY_AND_ASSIGN(GuestView); |
115 }; | 114 }; |
116 | 115 |
117 #endif // CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ | 116 #endif // CHROME_BROWSER_GUESTVIEW_GUESTVIEW_H_ |
OLD | NEW |