2014-07-03 20:34:58 +02:00
|
|
|
// Copyright (c) 2014 the Chromium Embedded Framework authors.
|
|
|
|
// Portions Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef LIBCEF_UTILITY_CONTENT_UTILITY_CLIENT_H_
|
|
|
|
#define LIBCEF_UTILITY_CONTENT_UTILITY_CLIENT_H_
|
|
|
|
|
2017-07-27 01:19:27 +02:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
|
2014-07-03 20:34:58 +02:00
|
|
|
#include "content/public/utility/content_utility_client.h"
|
|
|
|
|
2018-03-20 21:15:08 +01:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
namespace printing {
|
|
|
|
class PrintingHandler;
|
|
|
|
}
|
|
|
|
#endif
|
2014-07-03 20:34:58 +02:00
|
|
|
|
|
|
|
class CefContentUtilityClient : public content::ContentUtilityClient {
|
|
|
|
public:
|
|
|
|
CefContentUtilityClient();
|
2014-11-12 20:25:15 +01:00
|
|
|
~CefContentUtilityClient() override;
|
2014-07-03 20:34:58 +02:00
|
|
|
|
2017-05-31 17:33:30 +02:00
|
|
|
void UtilityThreadStarted() override;
|
2014-11-12 20:25:15 +01:00
|
|
|
bool OnMessageReceived(const IPC::Message& message) override;
|
2017-05-31 17:33:30 +02:00
|
|
|
void RegisterServices(StaticServiceMap* services) override;
|
2014-07-03 20:34:58 +02:00
|
|
|
|
|
|
|
private:
|
2018-03-20 21:15:08 +01:00
|
|
|
#if defined(OS_WIN)
|
|
|
|
std::unique_ptr<printing::PrintingHandler> printing_handler_;
|
|
|
|
#endif
|
2014-07-03 20:34:58 +02:00
|
|
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(CefContentUtilityClient);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LIBCEF_UTILITY_CONTENT_UTILITY_CLIENT_H_
|