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 "extensions/browser/guest_view/extension_options/extension_options_gues
t.h" | 5 #include "extensions/browser/guest_view/extension_options/extension_options_gues
t.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "components/crx_file/id_util.h" | 8 #include "components/crx_file/id_util.h" |
9 #include "components/guest_view/browser/guest_view_event.h" | 9 #include "components/guest_view/browser/guest_view_event.h" |
10 #include "components/guest_view/browser/guest_view_manager.h" | 10 #include "components/guest_view/browser/guest_view_manager.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "extensions/common/extension.h" | 24 #include "extensions/common/extension.h" |
25 #include "extensions/common/extension_messages.h" | 25 #include "extensions/common/extension_messages.h" |
26 #include "extensions/common/manifest_handlers/options_page_info.h" | 26 #include "extensions/common/manifest_handlers/options_page_info.h" |
27 #include "extensions/common/permissions/permissions_data.h" | 27 #include "extensions/common/permissions/permissions_data.h" |
28 #include "extensions/strings/grit/extensions_strings.h" | 28 #include "extensions/strings/grit/extensions_strings.h" |
29 #include "ipc/ipc_message_macros.h" | 29 #include "ipc/ipc_message_macros.h" |
30 | 30 |
31 using content::WebContents; | 31 using content::WebContents; |
32 using guest_view::GuestViewBase; | 32 using guest_view::GuestViewBase; |
33 using guest_view::GuestViewEvent; | 33 using guest_view::GuestViewEvent; |
34 using namespace extensions::core_api; | 34 using namespace extensions::api; |
35 | 35 |
36 namespace extensions { | 36 namespace extensions { |
37 | 37 |
38 // static | 38 // static |
39 const char ExtensionOptionsGuest::Type[] = "extensionoptions"; | 39 const char ExtensionOptionsGuest::Type[] = "extensionoptions"; |
40 | 40 |
41 ExtensionOptionsGuest::ExtensionOptionsGuest( | 41 ExtensionOptionsGuest::ExtensionOptionsGuest( |
42 content::WebContents* owner_web_contents) | 42 content::WebContents* owner_web_contents) |
43 : GuestView<ExtensionOptionsGuest>(owner_web_contents), | 43 : GuestView<ExtensionOptionsGuest>(owner_web_contents), |
44 extension_options_guest_delegate_( | 44 extension_options_guest_delegate_( |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 SetGuestZoomLevelToMatchEmbedder(); | 225 SetGuestZoomLevelToMatchEmbedder(); |
226 | 226 |
227 if (params.url.GetOrigin() != options_page_.GetOrigin()) { | 227 if (params.url.GetOrigin() != options_page_.GetOrigin()) { |
228 bad_message::ReceivedBadMessage(web_contents()->GetRenderProcessHost(), | 228 bad_message::ReceivedBadMessage(web_contents()->GetRenderProcessHost(), |
229 bad_message::EOG_BAD_ORIGIN); | 229 bad_message::EOG_BAD_ORIGIN); |
230 } | 230 } |
231 } | 231 } |
232 } | 232 } |
233 | 233 |
234 } // namespace extensions | 234 } // namespace extensions |
OLD | NEW |