Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / public / utility / content_utility_client.h
blobb326eae140cfd24c9ac70c321a9bcf98c3aa3f79
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
6 #define CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_
8 #include <map>
10 #include "base/callback_forward.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/common/content_client.h"
14 class GURL;
16 namespace mojo {
17 class ApplicationDelegate;
20 namespace content {
22 class ServiceRegistry;
24 // Embedder API for participating in renderer logic.
25 class CONTENT_EXPORT ContentUtilityClient {
26 public:
27 using StaticMojoApplicationMap =
28 std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>;
30 virtual ~ContentUtilityClient() {}
32 // Notifies us that the UtilityThread has been created.
33 virtual void UtilityThreadStarted() {}
35 // Allows the embedder to filter messages.
36 virtual bool OnMessageReceived(const IPC::Message& message);
38 // Registers Mojo services.
39 virtual void RegisterMojoServices(ServiceRegistry* registry) {}
41 // Registers Mojo applications.
42 virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {}
45 } // namespace content
47 #endif // CONTENT_PUBLIC_UTILITY_CONTENT_UTILITY_CLIENT_H_