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

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

Issue 433283002: Adding the Copresence RpcHandler and HttpPost helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@directive-handler
Patch Set: Addressing nits 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
index 374eb96561a7f40c8fcec20477c08ba4c8ecf2a3..27ea9b455f3e69df8ca170e17a262e61104a1374 100644
--- a/components/copresence/public/copresence_client_delegate.h
+++ b/components/copresence/public/copresence_client_delegate.h
@@ -2,13 +2,13 @@
// 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_DELEGATE_H_
-#define COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_DELEGATE_H_
+#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"
-#include "components/copresence/proto/rpcs.pb.h"
namespace net {
class URLRequestContextGetter;
@@ -16,6 +16,7 @@ class URLRequestContextGetter;
namespace copresence {
+class Message;
class WhispernetClient;
enum CopresenceStatus { SUCCESS, FAIL };
@@ -31,7 +32,7 @@ class CopresenceClientDelegate {
virtual void HandleMessages(
const std::string& app_id,
const std::string& subscription_id,
- const std::vector<copresence::Message>& message) = 0;
+ const std::vector<Message>& message) = 0;
virtual net::URLRequestContextGetter* GetRequestContext() const = 0;
@@ -48,4 +49,4 @@ class CopresenceClientDelegate {
} // namespace copresence
-#endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_DELEGATE_H_
+#endif // COMPONENTS_COPRESENCE_PUBLIC_COPRESENCE_CLIENT_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698