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

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 <map>
11 #include <string>
10 #include <vector> 12 #include <vector>
11 13
12 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
13 #include "base/macros.h" 15 #include "base/macros.h"
14 #include "chromeos/dbus/debug_daemon_client.h" 16 #include "chromeos/dbus/debug_daemon_client.h"
15 17
16 namespace chromeos { 18 namespace chromeos {
17 19
18 // The DebugDaemonClient implementation used on Linux desktop, 20 // The DebugDaemonClient implementation used on Linux desktop,
19 // which does nothing. 21 // which does nothing.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void UploadCrashes() override; 62 void UploadCrashes() override;
61 void EnableDebuggingFeatures( 63 void EnableDebuggingFeatures(
62 const std::string& password, 64 const std::string& password,
63 const EnableDebuggingCallback& callback) override; 65 const EnableDebuggingCallback& callback) override;
64 void QueryDebuggingFeatures( 66 void QueryDebuggingFeatures(
65 const QueryDevFeaturesCallback& callback) override; 67 const QueryDevFeaturesCallback& callback) override;
66 void RemoveRootfsVerification( 68 void RemoveRootfsVerification(
67 const EnableDebuggingCallback& callback) override; 69 const EnableDebuggingCallback& callback) override;
68 void WaitForServiceToBeAvailable( 70 void WaitForServiceToBeAvailable(
69 const WaitForServiceToBeAvailableCallback& callback) override; 71 const WaitForServiceToBeAvailableCallback& callback) override;
72 void SetOomScoreAdj(const std::map<int, int>& scores,
hashimoto 2016/08/17 02:48:47 Please use the same argument name as used in debug
cylee1 2016/08/18 22:16:26 Done.
73 const SetOomScoreAdjCallback& callback) override;
70 74
71 // Sets debugging features mask for testing. 75 // Sets debugging features mask for testing.
72 virtual void SetDebuggingFeaturesStatus(int featues_mask); 76 virtual void SetDebuggingFeaturesStatus(int featues_mask);
73 77
74 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs 78 // Changes the behavior of WaitForServiceToBeAvailable(). This method runs
75 // pending callbacks if is_available is true. 79 // pending callbacks if is_available is true.
76 void SetServiceIsAvailable(bool is_available); 80 void SetServiceIsAvailable(bool is_available);
77 81
78 private: 82 private:
79 int featues_mask_; 83 int featues_mask_;
80 84
81 bool service_is_available_; 85 bool service_is_available_;
82 std::vector<WaitForServiceToBeAvailableCallback> 86 std::vector<WaitForServiceToBeAvailableCallback>
83 pending_wait_for_service_to_be_available_callbacks_; 87 pending_wait_for_service_to_be_available_callbacks_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient); 89 DISALLOW_COPY_AND_ASSIGN(FakeDebugDaemonClient);
86 }; 90 };
87 91
88 } // namespace chromeos 92 } // namespace chromeos
89 93
90 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_ 94 #endif // CHROMEOS_DBUS_FAKE_DEBUG_DAEMON_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698