OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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 CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_CONTROLLER_H_ | |
6 #define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_CONTROLLER_H_ | |
7 | |
8 #include "base/mac/scoped_cftyperef.h" | |
9 #include "base/memory/weak_ptr.h" | |
10 #include "base/threading/thread.h" | |
11 #include "ipc/ipc_channel_factory.h" | |
12 | |
13 // The AppShimHostController receives connections from app shims on a UNIX | |
14 // socket (|factory_|) and creates a helper object to manage the connection. | |
jeremy
2013/03/11 06:49:59
What kind of object is the helper object?
Also com
jeremya
2013/03/11 08:42:26
It's an AppShimHost, but that class is local to th
| |
15 class AppShimHostController | |
16 : public IPC::ChannelFactory::Delegate, | |
17 public base::SupportsWeakPtr<AppShimHostController> { | |
18 public: | |
19 AppShimHostController(); | |
20 virtual ~AppShimHostController(); | |
21 | |
22 private: | |
23 virtual void OnClientConnected(const IPC::ChannelHandle& handle) OVERRIDE; | |
jeremy
2013/03/11 06:49:59
// IPC::ChannelFactory::Delegate implementation. A
jeremya
2013/03/11 08:42:26
Done.
| |
24 virtual void OnListenError() OVERRIDE {} | |
25 | |
26 void InitOnFileThread(); | |
27 void ListenOnIO(); | |
Mark Mentovai
2013/03/11 12:40:37
Can you add the word “thread” to this one too?
| |
28 | |
29 IPC::ChannelFactory* factory_; | |
30 }; | |
31 | |
32 #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_CONTROLLER_H_ | |
OLD | NEW |