Removed unused VideoCaptureCapability parameters.
[chromium-blink-merge.git] / content / public / browser / utility_process_host_client.h
blob73d707bb18a8113e2beacf7f73fbc169e4d67fa0
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_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_
8 #include "base/memory/ref_counted.h"
9 #include "content/common/content_export.h"
11 namespace IPC {
12 class Message;
15 namespace content {
17 // An interface to be implemented by consumers of the utility process to
18 // get results back. All functions are called on the thread passed along
19 // to UtilityProcessHost.
20 class UtilityProcessHostClient
21 : public base::RefCountedThreadSafe<UtilityProcessHostClient> {
22 public:
23 // Called when the process has crashed.
24 virtual void OnProcessCrashed(int exit_code) {}
26 // Allow the client to filter IPC messages.
27 virtual bool OnMessageReceived(const IPC::Message& message) = 0;
29 protected:
30 friend class base::RefCountedThreadSafe<UtilityProcessHostClient>;
32 virtual ~UtilityProcessHostClient() {}
35 }; // namespace content
37 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_