Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: chrome/browser/guest_view/web_view/web_view_guest.h

Issue 464533002: Move guest_view to extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes are made in guest_view_manager_unittest.cc Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
6 #define CHROME_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/extensions/tab_helper.h" 11 #include "chrome/browser/extensions/tab_helper.h"
12 #include "chrome/browser/guest_view/guest_view.h"
13 #include "chrome/browser/guest_view/web_view/javascript_dialog_helper.h" 12 #include "chrome/browser/guest_view/web_view/javascript_dialog_helper.h"
14 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" 13 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h"
15 #include "chrome/browser/guest_view/web_view/web_view_permission_helper.h" 14 #include "chrome/browser/guest_view/web_view/web_view_permission_helper.h"
16 #include "chrome/browser/guest_view/web_view/web_view_permission_types.h" 15 #include "chrome/browser/guest_view/web_view/web_view_permission_types.h"
17 #include "chrome/common/extensions/api/web_view_internal.h" 16 #include "chrome/common/extensions/api/web_view_internal.h"
18 #include "content/public/browser/javascript_dialog_manager.h" 17 #include "content/public/browser/javascript_dialog_manager.h"
19 #include "content/public/browser/notification_registrar.h" 18 #include "content/public/browser/notification_registrar.h"
19 #include "extensions/browser/guest_view/guest_view.h"
20 #include "third_party/WebKit/public/web/WebFindOptions.h" 20 #include "third_party/WebKit/public/web/WebFindOptions.h"
21 21
22 #if defined(OS_CHROMEOS) 22 #if defined(OS_CHROMEOS)
23 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 23 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
24 #endif 24 #endif
25 25
26 namespace webview_api = extensions::api::web_view_internal; 26 namespace webview_api = extensions::api::web_view_internal;
27 27
28 class RenderViewContextMenu; 28 class RenderViewContextMenu;
29 29
30 namespace extensions {
31 class ScriptExecutor;
32 class WebViewInternalFindFunction;
33 } // namespace extensions
34
35 namespace ui { 30 namespace ui {
36 class SimpleMenuModel; 31 class SimpleMenuModel;
37 } // namespace ui 32 } // namespace ui
38 33
34 namespace extensions {
35 class ScriptExecutor;
36 class WebViewInternalFindFunction;
37
39 // A WebViewGuest provides the browser-side implementation of the <webview> API 38 // A WebViewGuest provides the browser-side implementation of the <webview> API
40 // and manages the dispatch of <webview> extension events. WebViewGuest is 39 // and manages the dispatch of <webview> extension events. WebViewGuest is
41 // created on attachment. That is, when a guest WebContents is associated with 40 // created on attachment. That is, when a guest WebContents is associated with
42 // a particular embedder WebContents. This happens on either initial navigation 41 // a particular embedder WebContents. This happens on either initial navigation
43 // or through the use of the New Window API, when a new window is attached to 42 // or through the use of the New Window API, when a new window is attached to
44 // a particular <webview>. 43 // a particular <webview>.
45 class WebViewGuest : public GuestView<WebViewGuest>, 44 class WebViewGuest : public GuestView<WebViewGuest>,
46 public content::NotificationObserver { 45 public content::NotificationObserver {
47 public: 46 public:
48 static GuestViewBase* Create(content::BrowserContext* browser_context, 47 static GuestViewBase* Create(content::BrowserContext* browser_context,
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 name(name), 391 name(name),
393 changed(false) {} 392 changed(false) {}
394 }; 393 };
395 394
396 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap; 395 typedef std::map<WebViewGuest*, NewWindowInfo> PendingWindowMap;
397 PendingWindowMap pending_new_windows_; 396 PendingWindowMap pending_new_windows_;
398 397
399 DISALLOW_COPY_AND_ASSIGN(WebViewGuest); 398 DISALLOW_COPY_AND_ASSIGN(WebViewGuest);
400 }; 399 };
401 400
401 } // namespace extensions
402
402 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_ 403 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/web_view/web_view_find_helper.cc ('k') | chrome/browser/guest_view/web_view/web_view_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698