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 #include "chrome/browser/guest_view/guest_view_base.h" | 5 #include "chrome/browser/guest_view/guest_view_base.h" |
6 | 6 |
7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/guest_view/guest_view_constants.h" | |
10 #include "chrome/browser/guest_view/guest_view_manager.h" | 9 #include "chrome/browser/guest_view/guest_view_manager.h" |
11 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
12 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
13 #include "content/public/browser/render_view_host.h" | 12 #include "content/public/browser/render_view_host.h" |
14 #include "content/public/browser/web_contents.h" | 13 #include "content/public/browser/web_contents.h" |
15 #include "content/public/common/url_constants.h" | 14 #include "content/public/common/url_constants.h" |
16 #include "extensions/browser/api/extensions_api_client.h" | 15 #include "extensions/browser/api/extensions_api_client.h" |
17 #include "extensions/browser/event_router.h" | 16 #include "extensions/browser/event_router.h" |
18 #include "extensions/browser/extension_registry.h" | 17 #include "extensions/browser/extension_registry.h" |
| 18 #include "extensions/browser/guest_view/guest_view_constants.h" |
19 #include "extensions/browser/process_map.h" | 19 #include "extensions/browser/process_map.h" |
20 #include "extensions/common/features/feature.h" | 20 #include "extensions/common/features/feature.h" |
21 #include "extensions/common/features/feature_provider.h" | 21 #include "extensions/common/features/feature_provider.h" |
22 #include "third_party/WebKit/public/web/WebInputEvent.h" | 22 #include "third_party/WebKit/public/web/WebInputEvent.h" |
23 | 23 |
24 using content::WebContents; | 24 using content::WebContents; |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 typedef std::map<std::string, GuestViewBase::GuestCreationCallback> | 28 typedef std::map<std::string, GuestViewBase::GuestCreationCallback> |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 InitWithWebContents(embedder_extension_id, | 441 InitWithWebContents(embedder_extension_id, |
442 embedder_render_process_id, | 442 embedder_render_process_id, |
443 guest_web_contents); | 443 guest_web_contents); |
444 callback.Run(guest_web_contents); | 444 callback.Run(guest_web_contents); |
445 } | 445 } |
446 | 446 |
447 // static | 447 // static |
448 void GuestViewBase::RegisterGuestViewTypes() { | 448 void GuestViewBase::RegisterGuestViewTypes() { |
449 extensions::ExtensionsAPIClient::Get()->RegisterGuestViewTypes(); | 449 extensions::ExtensionsAPIClient::Get()->RegisterGuestViewTypes(); |
450 } | 450 } |
OLD | NEW |