Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(777)

Side by Side Diff: content/public/browser/utility_process_host_client.h

Issue 9317074: Create an API around UtilityProcessHost and use that from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/browser/utility_process_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_
7 #pragma once
8
9 #include "base/memory/ref_counted.h"
10 #include "content/common/content_export.h"
11
12 namespace IPC {
13 class Message;
14 }
15
16 namespace content {
17
18 // An interface to be implemented by consumers of the utility process to
19 // get results back. All functions are called on the thread passed along
20 // to UtilityProcessHost.
21 class UtilityProcessHostClient
22 : public base::RefCountedThreadSafe<UtilityProcessHostClient> {
23 public:
24 // Called when the process has crashed.
25 virtual void OnProcessCrashed(int exit_code) {}
26
27 // Allow the client to filter IPC messages.
28 virtual bool OnMessageReceived(const IPC::Message& message) = 0;
29
30 protected:
31 friend class base::RefCountedThreadSafe<UtilityProcessHostClient>;
32
33 virtual ~UtilityProcessHostClient() {}
34 };
35
36 }; // namespace content
37
38 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_HOST_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/utility_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698