| 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 EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| 6 #define EXTENSIONS_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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "components/guest_view/browser/guest_view.h" | 14 #include "components/guest_view/browser/guest_view.h" |
| 15 #include "content/public/browser/javascript_dialog_manager.h" | 15 #include "content/public/browser/javascript_dialog_manager.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h" | 18 #include "extensions/browser/guest_view/web_view/javascript_dialog_helper.h" |
| 19 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" | 19 #include "extensions/browser/guest_view/web_view/web_view_find_helper.h" |
| 20 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" | 20 #include "extensions/browser/guest_view/web_view/web_view_guest_delegate.h" |
| 21 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 21 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
| 22 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" | 22 #include "extensions/browser/guest_view/web_view/web_view_permission_types.h" |
| 23 #include "extensions/browser/script_executor.h" | 23 #include "extensions/browser/script_executor.h" |
| 24 | 24 |
| 25 namespace blink { | 25 namespace blink { |
| 26 struct WebFindOptions; | 26 struct WebFindOptions; |
| 27 } // namespace blink | 27 } // namespace blink |
| 28 | 28 |
| 29 namespace content { | |
| 30 struct GlobalRequestID; | |
| 31 } // namespace content | |
| 32 | |
| 33 namespace extensions { | 29 namespace extensions { |
| 34 | 30 |
| 35 class WebViewInternalFindFunction; | 31 class WebViewInternalFindFunction; |
| 36 | 32 |
| 37 // A WebViewGuest provides the browser-side implementation of the <webview> API | 33 // A WebViewGuest provides the browser-side implementation of the <webview> API |
| 38 // and manages the dispatch of <webview> extension events. WebViewGuest is | 34 // and manages the dispatch of <webview> extension events. WebViewGuest is |
| 39 // created on attachment. That is, when a guest WebContents is associated with | 35 // created on attachment. That is, when a guest WebContents is associated with |
| 40 // a particular embedder WebContents. This happens on either initial navigation | 36 // a particular embedder WebContents. This happens on either initial navigation |
| 41 // or through the use of the New Window API, when a new window is attached to | 37 // or through the use of the New Window API, when a new window is attached to |
| 42 // a particular <webview>. | 38 // a particular <webview>. |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 // This is used to ensure pending tasks will not fire after this object is | 370 // This is used to ensure pending tasks will not fire after this object is |
| 375 // destroyed. | 371 // destroyed. |
| 376 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; | 372 base::WeakPtrFactory<WebViewGuest> weak_ptr_factory_; |
| 377 | 373 |
| 378 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); | 374 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); |
| 379 }; | 375 }; |
| 380 | 376 |
| 381 } // namespace extensions | 377 } // namespace extensions |
| 382 | 378 |
| 383 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ | 379 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ |
| OLD | NEW |