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 ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
|
|
|
|
#define ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
|
|
|
|
|
2017-08-23 23:23:27 +00:00
|
|
|
#include <memory>
|
2015-04-30 03:31:17 +00:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "base/compiler_specific.h"
|
|
|
|
#include "content/public/utility/content_utility_client.h"
|
|
|
|
|
|
|
|
class UtilityMessageHandler;
|
|
|
|
|
|
|
|
namespace atom {
|
|
|
|
|
|
|
|
class AtomContentUtilityClient : public content::ContentUtilityClient {
|
|
|
|
public:
|
|
|
|
AtomContentUtilityClient();
|
|
|
|
~AtomContentUtilityClient() override;
|
|
|
|
|
2017-04-05 03:40:43 +00:00
|
|
|
bool OnMessageReceived(const IPC::Message& message) override;
|
2018-10-04 18:08:56 +00:00
|
|
|
void RegisterServices(StaticServiceMap* services) override;
|
2017-04-05 03:40:43 +00:00
|
|
|
|
2015-04-30 03:31:17 +00:00
|
|
|
private:
|
2017-02-01 04:56:34 +00:00
|
|
|
#if defined(OS_WIN)
|
2017-08-23 23:23:27 +00:00
|
|
|
typedef std::vector<std::unique_ptr<UtilityMessageHandler>> Handlers;
|
2015-04-30 03:31:17 +00:00
|
|
|
Handlers handlers_;
|
2017-02-01 04:56:34 +00:00
|
|
|
#endif
|
2015-04-30 03:31:17 +00:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(AtomContentUtilityClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace atom
|
|
|
|
|
2016-01-20 14:11:38 +00:00
|
|
|
#endif // ATOM_UTILITY_ATOM_CONTENT_UTILITY_CLIENT_H_
|