OLD | NEW |
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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
11 #include "chrome/browser/guest_view/web_view/javascript_dialog_helper.h" | |
12 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" | |
13 #include "chrome/browser/guest_view/web_view/web_view_permission_helper.h" | |
14 #include "chrome/browser/guest_view/web_view/web_view_permission_types.h" | |
15 #include "content/public/browser/javascript_dialog_manager.h" | 11 #include "content/public/browser/javascript_dialog_manager.h" |
16 #include "content/public/browser/notification_observer.h" | 12 #include "content/public/browser/notification_observer.h" |
17 #include "content/public/browser/notification_registrar.h" | 13 #include "content/public/browser/notification_registrar.h" |
18 #include "extensions/browser/guest_view/guest_view.h" | 14 #include "extensions/browser/guest_view/guest_view.h" |
| 15 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h" |
| 16 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" |
19 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" | 17 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" |
| 18 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
| 19 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" |
20 #include "extensions/browser/script_executor.h" | 20 #include "extensions/browser/script_executor.h" |
21 #include "third_party/WebKit/public/web/WebFindOptions.h" | 21 |
| 22 namespace blink { |
| 23 struct WebFindOptions; |
| 24 } // nanespace blink |
22 | 25 |
23 namespace extensions { | 26 namespace extensions { |
24 | 27 |
25 class WebViewInternalFindFunction; | 28 class WebViewInternalFindFunction; |
26 | 29 |
27 // A WebViewGuest provides the browser-side implementation of the <webview> API | 30 // A WebViewGuest provides the browser-side implementation of the <webview> API |
28 // and manages the dispatch of <webview> extension events. WebViewGuest is | 31 // and manages the dispatch of <webview> extension events. WebViewGuest is |
29 // created on attachment. That is, when a guest WebContents is associated with | 32 // created on attachment. That is, when a guest WebContents is associated with |
30 // a particular embedder WebContents. This happens on either initial navigation | 33 // a particular embedder WebContents. This happens on either initial navigation |
31 // or through the use of the New Window API, when a new window is attached to | 34 // or through the use of the New Window API, when a new window is attached to |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 }; | 353 }; |
351 | 354 |
352 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; | 355 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; |
353 PendingWindowMap pending_new_windows_; | 356 PendingWindowMap pending_new_windows_; |
354 | 357 |
355 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 358 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
356 }; | 359 }; |
357 | 360 |
358 } // namespace extensions | 361 } // namespace extensions |
359 | 362 |
360 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 363 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
OLD | NEW |