-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made it possible to register a "one-time use" ResourceHandler
- Loading branch information
Showing
3 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright © 2010-2017 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. | ||
|
||
namespace CefSharp | ||
{ | ||
public class ResourceFactoryItem | ||
{ | ||
/// <summary> | ||
/// The handler for a specific Url | ||
/// </summary> | ||
public IResourceHandler Handler { get; private set; } | ||
|
||
/// <summary> | ||
/// Whether or not the handler should be used once (false) or until manually unregistered (true) | ||
/// </summary> | ||
public bool Persist { get; private set; } | ||
|
||
/// <param name="handler">The handler for a specific Url</param> | ||
/// <param name="persist">Whether or not the handler should be used once (false) or until manually unregistered (true)</param> | ||
public ResourceFactoryItem(IResourceHandler handler, bool persist) | ||
{ | ||
Handler = handler; | ||
Persist = persist; | ||
} | ||
} | ||
} |