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

Side by Side Diff: extensions/renderer/extensions_renderer_client.h

Issue 237833002: Create ExtensionsRendererClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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 #ifndef EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
6 #define EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
7
8 namespace extensions {
9
10 // Interface to allow the extensions module to make render-process-specific
11 // queries of the embedder. Should be Set() once in the render process.
12 //
13 // NOTE: Methods that do not require knowledge of renderer concepts should be
14 // added in ExtensionsClient (extensions/common/extensions_client.h) even if
15 // they are only used in the renderer process.
16 class ExtensionsRendererClient {
17 public:
18 virtual ~ExtensionsRendererClient() {}
19
20 // Returns true if the current render process was launched incognito.
21 virtual bool IsIncognitoProcess() const = 0;
22
23 // Returns the lowest isolated world ID available to extensions.
Yoyo Zhou 2014/04/14 21:39:05 There should be a "See ..." pointer here.
24 virtual int GetLowestIsolatedWorldId() const = 0;
25
26 // Returns the single instance of |this|.
27 static ExtensionsRendererClient* Get();
28
29 // Initialize the single instance.
30 static void Set(ExtensionsRendererClient* client);
31 };
32
33 } // namespace extensions
34
35 #endif // EXTENSIONS_RENDERER_EXTENSIONS_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698