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

Side by Side Diff: extensions/browser/guest_view/extension_options/extension_options_guest.cc

Issue 1226353004: Generate all extension schema namespaces as "api" and instead vary the generated bundle names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 #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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698