electron/shell/utility/electron_content_utility_client.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.3 KiB
C
Raw Normal View History

2015-04-30 03:31:17 +00:00
// Copyright (c) 2015 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ELECTRON_SHELL_UTILITY_ELECTRON_CONTENT_UTILITY_CLIENT_H_
#define ELECTRON_SHELL_UTILITY_ELECTRON_CONTENT_UTILITY_CLIENT_H_
2015-04-30 03:31:17 +00:00
#include <memory>
2015-04-30 03:31:17 +00:00
#include "base/compiler_specific.h"
#include "content/public/utility/content_utility_client.h"
#include "mojo/public/cpp/bindings/binder_map.h"
#include "printing/buildflags/buildflags.h"
2015-04-30 03:31:17 +00:00
namespace mojo {
class ServiceFactory;
}
2015-04-30 03:31:17 +00:00
namespace electron {
class ElectronContentUtilityClient : public content::ContentUtilityClient {
public:
ElectronContentUtilityClient();
~ElectronContentUtilityClient() override;
// disable copy
ElectronContentUtilityClient(const ElectronContentUtilityClient&) = delete;
ElectronContentUtilityClient& operator=(const ElectronContentUtilityClient&) =
delete;
void ExposeInterfacesToBrowser(mojo::BinderMap* binders) override;
void RegisterMainThreadServices(mojo::ServiceFactory& services) override;
void RegisterIOThreadServices(mojo::ServiceFactory& services) override;
2015-04-30 03:31:17 +00:00
private:
// True if the utility process runs with elevated privileges.
bool utility_process_running_elevated_ = false;
2015-04-30 03:31:17 +00:00
};
} // namespace electron
#endif // ELECTRON_SHELL_UTILITY_ELECTRON_CONTENT_UTILITY_CLIENT_H_