cef/libcef/utility/content_utility_client.h
Marshall Greenblatt 5c79944b31 Update to Chromium revision d483fb77 (#474934)
- CefLifeSpanHandler::OnBeforePopup is now called on the UI thread.
- Remove CefBrowserSettings.javascript_open_windows which is no
  longer supported.
2017-06-02 05:55:23 -07:00

31 lines
984 B
C++

// 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_
#include "base/memory/scoped_vector.h"
#include "content/public/utility/content_utility_client.h"
class UtilityMessageHandler;
class CefContentUtilityClient : public content::ContentUtilityClient {
public:
CefContentUtilityClient();
~CefContentUtilityClient() override;
void UtilityThreadStarted() override;
bool OnMessageReceived(const IPC::Message& message) override;
void RegisterServices(StaticServiceMap* services) override;
private:
typedef ScopedVector<UtilityMessageHandler> Handlers;
Handlers handlers_;
DISALLOW_COPY_AND_ASSIGN(CefContentUtilityClient);
};
#endif // LIBCEF_UTILITY_CONTENT_UTILITY_CLIENT_H_