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

Unified Diff: third_party/mojo/src/mojo/public/cpp/bindings/no_interface.h

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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
Index: third_party/mojo/src/mojo/public/cpp/bindings/no_interface.h
diff --git a/third_party/mojo/src/mojo/public/cpp/bindings/no_interface.h b/third_party/mojo/src/mojo/public/cpp/bindings/no_interface.h
deleted file mode 100644
index aac74713d472834f8be3011d5a84f6a0928ad44a..0000000000000000000000000000000000000000
--- a/third_party/mojo/src/mojo/public/cpp/bindings/no_interface.h
+++ /dev/null
@@ -1,52 +0,0 @@
-// Copyright 2014 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 THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_
-#define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_
-
-#include "third_party/mojo/src/mojo/public/cpp/bindings/message.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/message_filter.h"
-#include "third_party/mojo/src/mojo/public/cpp/system/core.h"
-
-namespace mojo {
-
-// NoInterface is for use in cases when a non-existent or empty interface is
-// needed.
-
-class NoInterfaceProxy;
-class NoInterfaceStub;
-
-class NoInterface {
- public:
- static const char* Name_;
- typedef NoInterfaceProxy Proxy_;
- typedef NoInterfaceStub Stub_;
- typedef PassThroughFilter RequestValidator_;
- typedef PassThroughFilter ResponseValidator_;
- virtual ~NoInterface() {}
-};
-
-class NoInterfaceProxy : public NoInterface {
- public:
- explicit NoInterfaceProxy(MessageReceiver* receiver) {}
-};
-
-class NoInterfaceStub : public MessageReceiverWithResponder {
- public:
- NoInterfaceStub() {}
- void set_sink(NoInterface* sink) {}
- NoInterface* sink() { return nullptr; }
- bool Accept(Message* message) override;
- bool AcceptWithResponder(Message* message,
- MessageReceiver* responder) override;
-};
-
-// AnyInterface is for use in cases where any interface would do (e.g., see the
-// Shell::Connect method).
-
-typedef NoInterface AnyInterface;
-
-} // namespace mojo
-
-#endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_CPP_BINDINGS_NO_INTERFACE_H_
« no previous file with comments | « third_party/mojo/src/mojo/public/cpp/bindings/message_filter.h ('k') | third_party/mojo/src/mojo/public/cpp/bindings/string.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698