Add new certificateProvider extension API.
[chromium-blink-merge.git] / chrome / renderer / extensions / chrome_extensions_renderer_client.cc
blob15278e78cb9137358bc8bace77060190de2ef057
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.
5 #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h"
7 #include "base/lazy_instance.h"
8 #include "chrome/common/chrome_isolated_world_ids.h"
9 #include "chrome/renderer/chrome_render_process_observer.h"
11 ChromeExtensionsRendererClient::ChromeExtensionsRendererClient() {}
13 ChromeExtensionsRendererClient::~ChromeExtensionsRendererClient() {}
15 // static
16 ChromeExtensionsRendererClient* ChromeExtensionsRendererClient::GetInstance() {
17 static base::LazyInstance<ChromeExtensionsRendererClient> client =
18 LAZY_INSTANCE_INITIALIZER;
19 return client.Pointer();
22 bool ChromeExtensionsRendererClient::IsIncognitoProcess() const {
23 return ChromeRenderProcessObserver::is_incognito_process();
26 int ChromeExtensionsRendererClient::GetLowestIsolatedWorldId() const {
27 return chrome::ISOLATED_WORLD_ID_EXTENSIONS;