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

Side by Side Diff: chrome/common/mac/mock_launchd.h

Issue 982883003: Use fixed socket name instead of SecureSocketWithKey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mon Mar 16 00:37:12 PDT 2015 Created 5 years, 9 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
« no previous file with comments | « chrome/common/mac/launchd.mm ('k') | chrome/common/mac/mock_launchd.cc » ('j') | no next file with comments »
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 CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ 5 #ifndef CHROME_COMMON_MAC_MOCK_LAUNCHD_H_
6 #define CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ 6 #define CHROME_COMMON_MAC_MOCK_LAUNCHD_H_
7 7
8 #include <launch.h> 8 #include <launch.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 static bool MakeABundle(const base::FilePath& dst, 26 static bool MakeABundle(const base::FilePath& dst,
27 const std::string& name, 27 const std::string& name,
28 base::FilePath* bundle_root, 28 base::FilePath* bundle_root,
29 base::FilePath* executable); 29 base::FilePath* executable);
30 30
31 MockLaunchd(const base::FilePath& file, base::MessageLoop* loop, 31 MockLaunchd(const base::FilePath& file, base::MessageLoop* loop,
32 bool create_socket, bool as_service); 32 bool create_socket, bool as_service);
33 ~MockLaunchd() override; 33 ~MockLaunchd() override;
34 34
35 CFDictionaryRef CopyExports() override;
36 CFDictionaryRef CopyJobDictionary(CFStringRef label) override; 35 CFDictionaryRef CopyJobDictionary(CFStringRef label) override;
37 CFDictionaryRef CopyDictionaryByCheckingIn(CFErrorRef* error) override; 36 CFDictionaryRef CopyDictionaryByCheckingIn(CFErrorRef* error) override;
38 bool RemoveJob(CFStringRef label, CFErrorRef* error) override; 37 bool RemoveJob(CFStringRef label, CFErrorRef* error) override;
39 bool RestartJob(Domain domain, 38 bool RestartJob(Domain domain,
40 Type type, 39 Type type,
41 CFStringRef name, 40 CFStringRef name,
42 CFStringRef session_type) override; 41 CFStringRef session_type) override;
43 CFMutableDictionaryRef CreatePlistFromFile(Domain domain, 42 CFMutableDictionaryRef CreatePlistFromFile(Domain domain,
44 Type type, 43 Type type,
45 CFStringRef name) override; 44 CFStringRef name) override;
(...skipping 19 matching lines...) Expand all
65 bool create_socket_; 64 bool create_socket_;
66 bool as_service_; 65 bool as_service_;
67 bool restart_called_; 66 bool restart_called_;
68 bool remove_called_; 67 bool remove_called_;
69 bool checkin_called_; 68 bool checkin_called_;
70 bool write_called_; 69 bool write_called_;
71 bool delete_called_; 70 bool delete_called_;
72 }; 71 };
73 72
74 #endif // CHROME_COMMON_MAC_MOCK_LAUNCHD_H_ 73 #endif // CHROME_COMMON_MAC_MOCK_LAUNCHD_H_
OLDNEW
« no previous file with comments | « chrome/common/mac/launchd.mm ('k') | chrome/common/mac/mock_launchd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698