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

Side by Side Diff: extensions/renderer/dispatcher.cc

Issue 1864283002: Implement <appview> based on out-of-process iframes GuestView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extensionoptions
Patch Set: app shell test Created 4 years, 8 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
« no previous file with comments | « extensions/browser/guest_view/app_view/app_view_apitest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/renderer/dispatcher.h" 5 #include "extensions/renderer/dispatcher.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1575 Feature::Context context_type = context->context_type(); 1575 Feature::Context context_type = context->context_type();
1576 ModuleSystem* module_system = context->module_system(); 1576 ModuleSystem* module_system = context->module_system();
1577 1577
1578 // Only set if |context| is capable of running guests in OOPIF. Used to 1578 // Only set if |context| is capable of running guests in OOPIF. Used to
1579 // require additional module overrides. 1579 // require additional module overrides.
1580 bool guest_view_required = false; 1580 bool guest_view_required = false;
1581 1581
1582 // Require AppView. 1582 // Require AppView.
1583 if (context->GetAvailability("appViewEmbedderInternal").is_available()) { 1583 if (context->GetAvailability("appViewEmbedderInternal").is_available()) {
1584 module_system->Require("appView"); 1584 module_system->Require("appView");
1585
1586 guest_view_required = true;
1585 } 1587 }
1586 1588
1587 // Require ExtensionOptions. 1589 // Require ExtensionOptions.
1588 if (context->GetAvailability("extensionOptionsInternal").is_available()) { 1590 if (context->GetAvailability("extensionOptionsInternal").is_available()) {
1589 module_system->Require("extensionOptions"); 1591 module_system->Require("extensionOptions");
1590 module_system->Require("extensionOptionsAttributes"); 1592 module_system->Require("extensionOptionsAttributes");
1591 1593
1592 guest_view_required = true; 1594 guest_view_required = true;
1593 } 1595 }
1594 1596
(...skipping 26 matching lines...) Expand all
1621 // The "guestViewDeny" module must always be loaded last. It registers 1623 // The "guestViewDeny" module must always be loaded last. It registers
1622 // error-providing custom elements for the GuestView types that are not 1624 // error-providing custom elements for the GuestView types that are not
1623 // available, and thus all of those types must have been checked and loaded 1625 // available, and thus all of those types must have been checked and loaded
1624 // (or not loaded) beforehand. 1626 // (or not loaded) beforehand.
1625 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) { 1627 if (context_type == Feature::BLESSED_EXTENSION_CONTEXT) {
1626 module_system->Require("guestViewDeny"); 1628 module_system->Require("guestViewDeny");
1627 } 1629 }
1628 } 1630 }
1629 1631
1630 } // namespace extensions 1632 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/app_view/app_view_apitest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698