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

Unified Diff: chromeos/dbus/ibus/ibus_engine_factory_service.h

Issue 68603002: Delete IBusEngineFactoryService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 1 month 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
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/ibus/ibus_engine_factory_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/ibus/ibus_engine_factory_service.h
diff --git a/chromeos/dbus/ibus/ibus_engine_factory_service.h b/chromeos/dbus/ibus/ibus_engine_factory_service.h
deleted file mode 100644
index 868be1a00a2f4131626d202fc6cdc5a4a4582942..0000000000000000000000000000000000000000
--- a/chromeos/dbus/ibus/ibus_engine_factory_service.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROMEOS_DBUS_IBUS_IBUS_ENGINE_FACTORY_SERVICE_H_
-#define CHROMEOS_DBUS_IBUS_IBUS_ENGINE_FACTORY_SERVICE_H_
-
-#include <string>
-#include "base/bind.h"
-#include "base/callback.h"
-#include "chromeos/chromeos_export.h"
-
-namespace dbus {
-class Bus;
-class ObjectPath;
-} // namespace dbus
-
-namespace chromeos {
-
-// A class to make the actual DBus method call handling for IBusEngineFactory
-// service. The exported method call is used by ibus-daemon to create engine
-// service if the extension IME is enabled.
-class CHROMEOS_EXPORT IBusEngineFactoryService {
- public:
- typedef base::Callback<void(const dbus::ObjectPath& path)>
- CreateEngineResponseSender;
- typedef base::Callback<void(const CreateEngineResponseSender& sender)>
- CreateEngineHandler;
-
- virtual ~IBusEngineFactoryService();
-
- // Sets CreateEngine method call handler for |engine_id|. If ibus-daemon calls
- // CreateEngine message with |engine_id|, the |create_engine_handler| will be
- // called.
- virtual void SetCreateEngineHandler(
- const std::string& engine_id,
- const CreateEngineHandler& create_engine_handler) = 0;
-
- // Unsets CreateEngine method call handler for |engine_id|.
- virtual void UnsetCreateEngineHandler(const std::string& engine_id) = 0;
-
- // Generates object path which is unique among all EngineServices.
- virtual dbus::ObjectPath GenerateUniqueObjectPath() = 0;
-
- // Factory function, creates a new instance and returns ownership.
- // For normal usage, accesses the singleton via DBusThreadManager::Get().
- static CHROMEOS_EXPORT IBusEngineFactoryService* Create();
-
- protected:
- // Create() should be used instead.
- IBusEngineFactoryService();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(IBusEngineFactoryService);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_FACTORY_SERVICE_H_
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/dbus/ibus/ibus_engine_factory_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698