Chromium Code Reviews| 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 // singleton | |
|
Mark Mentovai
2013/03/08 16:50:17
You’re gonna need more docs than this.
jeremya
2013/03/11 02:47:33
I've always liked concise documentation ;)
| |
| 14 class AppShimHostController | |
| 15 : public IPC::ChannelFactory::Delegate, | |
| 16 public base::SupportsWeakPtr<AppShimHostController> { | |
| 17 public: | |
| 18 AppShimHostController(); | |
| 19 virtual ~AppShimHostController(); | |
| 20 | |
| 21 private: | |
| 22 virtual void OnClientConnected(const IPC::ChannelHandle& handle) OVERRIDE; | |
| 23 virtual void OnListenError() OVERRIDE {} | |
| 24 | |
| 25 void InitOnFile(); | |
|
Mark Mentovai
2013/03/08 16:50:17
InitOnFile’s a funny name because (1) there is no
jeremya
2013/03/11 02:47:33
InitOnFileThread make more sense? :)
Mark Mentovai
2013/03/11 12:40:37
jeremya wrote:
| |
| 26 void ListenOnIO(); | |
| 27 | |
| 28 IPC::ChannelFactory* factory_; | |
| 29 }; | |
| 30 | |
| 31 #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_CONTROLLER_H_ | |
| OLD | NEW |