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

Side by Side Diff: remoting/host/daemon_process.h

Issue 11040065: [Chromoting] Reimplemented the worker process launcher to take into account the encountered issues: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « no previous file | remoting/host/daemon_process.cc » ('j') | remoting/host/daemon_process_win.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_HOST_DAEMON_PROCESS_H_ 5 #ifndef REMOTING_HOST_DAEMON_PROCESS_H_
6 #define REMOTING_HOST_DAEMON_PROCESS_H_ 6 #define REMOTING_HOST_DAEMON_PROCESS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 28 matching lines...) Expand all
39 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 39 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
40 const base::Closure& stopped_callback); 40 const base::Closure& stopped_callback);
41 41
42 // ConfigFileWatcher::Delegate 42 // ConfigFileWatcher::Delegate
43 virtual void OnConfigUpdated(const std::string& serialized_config) OVERRIDE; 43 virtual void OnConfigUpdated(const std::string& serialized_config) OVERRIDE;
44 virtual void OnConfigWatcherError() OVERRIDE; 44 virtual void OnConfigWatcherError() OVERRIDE;
45 45
46 // WorkerProcessIpcDelegate implementation. 46 // WorkerProcessIpcDelegate implementation.
47 virtual void OnChannelConnected() OVERRIDE; 47 virtual void OnChannelConnected() OVERRIDE;
48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 48 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
49 virtual void OnPermanentError() OVERRIDE;
49 50
50 // Sends an IPC message to the network process. The message will be dropped 51 // Sends an IPC message to the network process. The message will be dropped
51 // unless the network process is connected over the IPC channel. 52 // unless the network process is connected over the IPC channel.
52 virtual void Send(IPC::Message* message) = 0; 53 virtual void Send(IPC::Message* message) = 0;
53 54
54 protected: 55 protected:
55 DaemonProcess(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 56 DaemonProcess(scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
56 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner, 57 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner,
57 const base::Closure& stopped_callback); 58 const base::Closure& stopped_callback);
58 59
(...skipping 25 matching lines...) Expand all
84 85
85 // Handles IPC and background I/O tasks. 86 // Handles IPC and background I/O tasks.
86 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 87 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(DaemonProcess); 89 DISALLOW_COPY_AND_ASSIGN(DaemonProcess);
89 }; 90 };
90 91
91 } // namespace remoting 92 } // namespace remoting
92 93
93 #endif // REMOTING_HOST_DAEMON_PROCESS_H_ 94 #endif // REMOTING_HOST_DAEMON_PROCESS_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/host/daemon_process.cc » ('j') | remoting/host/daemon_process_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698