-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathIExtension.cs
More file actions
64 lines (56 loc) · 2.48 KB
/
Copy pathIExtension.cs
File metadata and controls
64 lines (56 loc) · 2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright © 2018 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System.Collections.Generic;
namespace CefSharp
{
/// <summary>
/// Object representing an extension. Methods may be called on any thread unless otherwise indicated.
/// </summary>
public interface IExtension
{
/// <summary>
/// Returns the unique extension identifier. This is calculated based on the
/// extension public key, if available, or on the extension path. See
/// https://developer.chrome.com/extensions/manifest/key for details.
/// </summary>
string Identifier { get; }
/// <summary>
/// Returns the absolute path to the extension directory on disk. This value
/// will be prefixed with PK_DIR_RESOURCES if a relative path was passed to
/// IRequestContext.LoadExtension.
/// </summary>
string Path { get; }
/// <summary>
/// Returns the extension manifest contents as a CefDictionaryValue object. See
/// https://developer.chrome.com/extensions/manifest for details.
/// </summary>
IDictionary<string, IValue> Manifest { get; }
/// <summary>
/// Returns true if this object is the same extension as that object.
/// Extensions are considered the same if identifier, path and loader context
/// match.
/// </summary>
/// <param name="that">extension to compare</param>
/// <returns>return true if the same extension</returns>
bool IsSame(IExtension that);
/// <summary>
/// Returns the request context that loaded this extension. Will return NULL
/// for internal extensions or if the extension has been unloaded. See the
/// CefRequestContext::LoadExtension documentation for more information about
/// loader contexts. Must be called on the CEF UI thread.
/// </summary>
IRequestContext LoaderContext { get; }
/// <summary>
/// Returns true if this extension is currently loaded. Must be called on the
/// CEF UI thread.
/// </summary>
bool IsLoaded { get; }
/// <summary>
/// Unload this extension if it is not an internal extension and is currently
/// loaded. Will result in a call to IExtensionHandler.OnExtensionUnloaded
/// on success.
/// </summary>
void Unload();
}
}