• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "apps/shell/renderer/shell_extensions_renderer_client.h"
6 
7 namespace apps {
8 
ShellExtensionsRendererClient()9 ShellExtensionsRendererClient::ShellExtensionsRendererClient() {}
10 
~ShellExtensionsRendererClient()11 ShellExtensionsRendererClient::~ShellExtensionsRendererClient() {}
12 
IsIncognitoProcess() const13 bool ShellExtensionsRendererClient::IsIncognitoProcess() const {
14   // app_shell doesn't support off-the-record contexts.
15   return false;
16 }
17 
GetLowestIsolatedWorldId() const18 int ShellExtensionsRendererClient::GetLowestIsolatedWorldId() const {
19   // app_shell doesn't need to reserve world IDs for anything other than
20   // extensions, so we always return 1. Note that 0 is reserved for the global
21   // world.
22   return 1;
23 }
24 
25 }  // namespace apps
26