OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "extensions/browser/guest_view/extension_view/extension_view_guest.h" | 5 #include "extensions/browser/guest_view/extension_view/extension_view_guest.h" |
6 | 6 |
7 #include "components/crx_file/id_util.h" | 7 #include "components/crx_file/id_util.h" |
8 #include "components/guest_view/browser/guest_view_event.h" | 8 #include "components/guest_view/browser/guest_view_event.h" |
9 #include "content/public/browser/render_process_host.h" | 9 #include "content/public/browser/render_process_host.h" |
10 #include "content/public/common/result_codes.h" | 10 #include "content/public/common/result_codes.h" |
11 #include "extensions/browser/api/extensions_api_client.h" | 11 #include "extensions/browser/api/extensions_api_client.h" |
12 #include "extensions/browser/bad_message.h" | 12 #include "extensions/browser/bad_message.h" |
13 #include "extensions/browser/guest_view/extension_view/extension_view_constants.
h" | 13 #include "extensions/browser/guest_view/extension_view/extension_view_constants.
h" |
14 #include "extensions/common/constants.h" | 14 #include "extensions/common/constants.h" |
15 #include "extensions/common/extension_messages.h" | 15 #include "extensions/common/extension_messages.h" |
16 #include "extensions/strings/grit/extensions_strings.h" | 16 #include "extensions/strings/grit/extensions_strings.h" |
17 | 17 |
18 using content::WebContents; | 18 using content::WebContents; |
19 using guest_view::GuestViewBase; | 19 using guest_view::GuestViewBase; |
20 using guest_view::GuestViewEvent; | 20 using guest_view::GuestViewEvent; |
21 using namespace extensions::core_api; | 21 using namespace extensions::api; |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 | 24 |
25 // static | 25 // static |
26 const char ExtensionViewGuest::Type[] = "extensionview"; | 26 const char ExtensionViewGuest::Type[] = "extensionview"; |
27 | 27 |
28 ExtensionViewGuest::ExtensionViewGuest( | 28 ExtensionViewGuest::ExtensionViewGuest( |
29 content::WebContents* owner_web_contents) | 29 content::WebContents* owner_web_contents) |
30 : GuestView<ExtensionViewGuest>(owner_web_contents) { | 30 : GuestView<ExtensionViewGuest>(owner_web_contents) { |
31 } | 31 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 141 } |
142 } | 142 } |
143 | 143 |
144 void ExtensionViewGuest::ApplyAttributes(const base::DictionaryValue& params) { | 144 void ExtensionViewGuest::ApplyAttributes(const base::DictionaryValue& params) { |
145 std::string src; | 145 std::string src; |
146 params.GetString(extensionview::kAttributeSrc, &src); | 146 params.GetString(extensionview::kAttributeSrc, &src); |
147 NavigateGuest(src, false /* force_navigation */); | 147 NavigateGuest(src, false /* force_navigation */); |
148 } | 148 } |
149 | 149 |
150 } // namespace extensions | 150 } // namespace extensions |
OLD | NEW |