OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_ | 5 #ifndef CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_ |
6 #define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_ | 6 #define CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_ |
7 | 7 |
8 #include "apps/app_shim/extension_app_shim_handler_mac.h" | 8 #include "apps/app_shim/extension_app_shim_handler_mac.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 virtual void OnListenError() OVERRIDE; | 49 virtual void OnListenError() OVERRIDE; |
50 | 50 |
51 // The |factory_| must be created on a thread which allows blocking I/O, so | 51 // The |factory_| must be created on a thread which allows blocking I/O, so |
52 // part of the initialization of this class must be carried out on the file | 52 // part of the initialization of this class must be carried out on the file |
53 // thread. | 53 // thread. |
54 void InitOnFileThread(); | 54 void InitOnFileThread(); |
55 | 55 |
56 // Called on the IO thread to begin listening for connections from app shims. | 56 // Called on the IO thread to begin listening for connections from app shims. |
57 void ListenOnIOThread(); | 57 void ListenOnIOThread(); |
58 | 58 |
59 // If set, used instead of chrome::DIR_USER_DATA for placing the socket. | 59 base::FilePath directory_in_tmp_; |
60 static const base::FilePath* g_override_user_data_dir_; | |
61 | 60 |
62 scoped_ptr<IPC::ChannelFactory> factory_; | 61 scoped_ptr<IPC::ChannelFactory> factory_; |
63 | 62 |
64 apps::ExtensionAppShimHandler extension_app_shim_handler_; | 63 apps::ExtensionAppShimHandler extension_app_shim_handler_; |
65 | 64 |
66 DISALLOW_COPY_AND_ASSIGN(AppShimHostManager); | 65 DISALLOW_COPY_AND_ASSIGN(AppShimHostManager); |
67 }; | 66 }; |
68 | 67 |
69 #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_ | 68 #endif // CHROME_BROWSER_WEB_APPLICATIONS_APP_SHIM_HOST_MANAGER_MAC_H_ |
OLD | NEW |