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

Side by Side Diff: apps/app_shim/app_shim_host_manager_mac.h

Issue 66043003: Put app shim IPC socket in a temporary directory. (Mac) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync, rebase, git cl format Created 6 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « apps/app_shim/app_shim_host_manager_browsertest_mac.mm ('k') | apps/app_shim/app_shim_host_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698