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

Side by Side Diff: chromeos/dbus/fake_debug_daemon_client.h

Issue 2247433002: TabManager: Set OOM scores via a new debugd interface on ChromeOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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 CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void UploadCrashes() override; 60 void UploadCrashes() override;
61 void EnableDebuggingFeatures( 61 void EnableDebuggingFeatures(
62 const std::string& password, 62 const std::string& password,
63 const EnableDebuggingCallback& callback) override; 63 const EnableDebuggingCallback& callback) override;
64 void QueryDebuggingFeatures( 64 void QueryDebuggingFeatures(
65 const QueryDevFeaturesCallback& callback) override; 65 const QueryDevFeaturesCallback& callback) override;
66 void RemoveRootfsVerification( 66 void RemoveRootfsVerification(
67 const EnableDebuggingCallback& callback) override; 67 const EnableDebuggingCallback& callback) override;
68 void WaitForServiceToBeAvailable( 68 void WaitForServiceToBeAvailable(
69 const WaitForServiceToBeAvailableCallback& callback) override; 69 const WaitForServiceToBeAvailableCallback& callback) override;
70 void SetOomScoreAdj(const std::map<int, int>& scores,
71 const SetOomScoreAdjCallback& callback) override;
70 72
71 // Sets debugging features mask for testing. 73 // Sets debugging features mask for testing.
72 virtual void SetDebuggingFeaturesStatus(int featues_mask); 74 virtual void SetDebuggingFeaturesStatus(int featues_mask);
73 75
74 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs 76 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs
75 // pending callbacks if is_available is true. 77 // pending callbacks if is_available is true.
76 void SetServiceIsAvailable(bool is_available); 78 void SetServiceIsAvailable(bool is_available);
77 79
78 private: 80 private:
79 int featues_mask_; 81 int featues_mask_;
80 82
81 bool service_is_available_; 83 bool service_is_available_;
82 std::vector<WaitForServiceToBeAvailableCallback> 84 std::vector<WaitForServiceToBeAvailableCallback>
83 pending_wait_for_service_to_be_available_callbacks_; 85 pending_wait_for_service_to_be_available_callbacks_;
84 86
85 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); 87 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
86 }; 88 };
87 89
88 } // namespace chromeos 90 } // namespace chromeos
89 91
90 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 92 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698