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

Unified Diff: components/copresence/public/copresence_client_delegate.h

Issue 441103002: Tests for the Copresence API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@api
Patch Set: Renaming to simply CopresenceDelegate Created 6 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 side-by-side diff with in-line comments
Download patch
Index: components/copresence/public/copresence_client_delegate.h
diff --git a/components/copresence/public/copresence_client_delegate.h b/components/copresence/public/copresence_client_delegate.h
deleted file mode 100644
index ef7634cb81a17c8f5731c218132189ab957c3b32..0000000000000000000000000000000000000000
--- a/components/copresence/public/copresence_client_delegate.h
+++ /dev/null
@@ -1,48 +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 COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CLIENT_DELEGATE_H_
-#define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CLIENT_DELEGATE_H_
-
-#include <string>
-#include <vector>
-
-#include "base/callback_forward.h"
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-namespace copresence {
-
-class Message;
-class WhispernetClient;
-
-enum CopresenceStatus { SUCCESS, FAIL };
-
-// Callback type to send a status.
-typedef base::Callback<void(CopresenceStatus)> StatusCallback;
-
-// A delegate interface for users of Copresence.
-class CopresenceClientDelegate {
- public:
- // This method will be called when we have subscribed messages that need to
- // be sent to their respective apps.
- virtual void HandleMessages(
- const std::string& app_id,
- const std::string& subscription_id,
- const std::vector<Message>& message) = 0;
-
- virtual net::URLRequestContextGetter* GetRequestContext() const = 0;
-
- virtual const std::string GetPlatformVersionString() const = 0;
-
- virtual const std::string GetAPIKey() const = 0;
-
- virtual WhispernetClient* GetWhispernetClient() = 0;
-};
-
-} // namespace copresence
-
-#endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CLIENT_DELEGATE_H_
« no previous file with comments | « components/copresence/public/copresence_client.h ('k') | components/copresence/public/copresence_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698