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

Unified Diff: services/ui/ime/test_ime_driver/test_ime_driver.h

Issue 2326913003: Privatize StrongBinding lifetime management (Closed)
Patch Set: rebase Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: services/ui/ime/test_ime_driver/test_ime_driver.h
diff --git a/services/ui/ime/test_ime_driver/test_ime_driver.h b/services/ui/ime/test_ime_driver/test_ime_driver.h
index 7a2e1d2b9be119729f8252ac2d1c5ab29c956099..b3ba3e60d69098704665193c5d4eaa6aad039c17 100644
--- a/services/ui/ime/test_ime_driver/test_ime_driver.h
+++ b/services/ui/ime/test_ime_driver/test_ime_driver.h
@@ -5,9 +5,12 @@
#ifndef SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_
#define SERVICES_UI_IME_TEST_IME_DRIVER_TEST_IME_DRIVER_H_
+#include <stdint.h>
+
#include <map>
+#include <memory>
-#include "mojo/public/cpp/bindings/strong_binding.h"
+#include "mojo/public/cpp/bindings/binding.h"
#include "services/ui/public/interfaces/ime.mojom.h"
namespace ui {
@@ -15,7 +18,7 @@ namespace test {
class TestIMEDriver : public ui::mojom::IMEDriver {
public:
- explicit TestIMEDriver(mojom::IMEDriverRequest request);
+ TestIMEDriver();
~TestIMEDriver() override;
private:
@@ -26,7 +29,6 @@ class TestIMEDriver : public ui::mojom::IMEDriver {
ui::mojom::InputMethodRequest input_method_request) override;
void CancelSession(int32_t session_id) override;
- mojo::StrongBinding<mojom::IMEDriver> driver_binding_;
std::map<int32_t, std::unique_ptr<mojo::Binding<mojom::InputMethod>>>
input_method_bindings_;
« no previous file with comments | « services/ui/ime/test_ime_driver/test_ime_application.cc ('k') | services/ui/ime/test_ime_driver/test_ime_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698