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