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_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 15 matching lines...) Expand all Loading... |
26 public content::NotificationObserver, | 26 public content::NotificationObserver, |
27 public content::WebContentsObserver { | 27 public content::WebContentsObserver { |
28 public: | 28 public: |
29 explicit WebViewGuest(content::WebContents* guest_web_contents); | 29 explicit WebViewGuest(content::WebContents* guest_web_contents); |
30 | 30 |
31 static WebViewGuest* From(int embedder_process_id, int instance_id); | 31 static WebViewGuest* From(int embedder_process_id, int instance_id); |
32 | 32 |
33 // GuestView implementation. | 33 // GuestView implementation. |
34 virtual void Attach(content::WebContents* embedder_web_contents, | 34 virtual void Attach(content::WebContents* embedder_web_contents, |
35 const std::string& extension_id, | 35 const std::string& extension_id, |
36 int view_instance_id, | |
37 const base::DictionaryValue& args) OVERRIDE; | 36 const base::DictionaryValue& args) OVERRIDE; |
38 virtual GuestView::Type GetViewType() const OVERRIDE; | 37 virtual GuestView::Type GetViewType() const OVERRIDE; |
39 virtual WebViewGuest* AsWebView() OVERRIDE; | 38 virtual WebViewGuest* AsWebView() OVERRIDE; |
40 virtual AdViewGuest* AsAdView() OVERRIDE; | 39 virtual AdViewGuest* AsAdView() OVERRIDE; |
41 | 40 |
42 // GuestDelegate implementation. | 41 // GuestDelegate implementation. |
43 virtual void AddMessageToConsole(int32 level, | 42 virtual void AddMessageToConsole(int32 level, |
44 const string16& message, | 43 const string16& message, |
45 int32 line_no, | 44 int32 line_no, |
46 const string16& source_id) OVERRIDE; | 45 const string16& source_id) OVERRIDE; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 ObserverList<extensions::TabHelper::ScriptExecutionObserver> | 117 ObserverList<extensions::TabHelper::ScriptExecutionObserver> |
119 script_observers_; | 118 script_observers_; |
120 scoped_ptr<extensions::ScriptExecutor> script_executor_; | 119 scoped_ptr<extensions::ScriptExecutor> script_executor_; |
121 | 120 |
122 content::NotificationRegistrar notification_registrar_; | 121 content::NotificationRegistrar notification_registrar_; |
123 | 122 |
124 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 123 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
125 }; | 124 }; |
126 | 125 |
127 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ | 126 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_WEBVIEW_GUEST_H_ |
OLD | NEW |