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

Unified Diff: chrome/browser/extensions/api/copresence/copresence_util.h

Issue 444513005: Add the Copresence API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: chrome/browser/extensions/api/copresence/copresence_util.h
diff --git a/chrome/browser/extensions/api/copresence/copresence_util.h b/chrome/browser/extensions/api/copresence/copresence_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..8302763d2c6d7f1942a9cc718ec8c4d1939bdf7f
--- /dev/null
+++ b/chrome/browser/extensions/api/copresence/copresence_util.h
@@ -0,0 +1,32 @@
+// 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 CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_UTIL_H_
+#define CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_UTIL_H_
+
+namespace content {
+class BrowserContext;
+}
+
+namespace copresence {
+class CopresenceClient;
+class WhispernetClient;
+}
+
+namespace extensions {
+
+class CopresenceService;
+
not at google - send to devlin 2014/08/07 20:41:18 these utils have a pretty small value, and it seem
rkc 2014/08/07 21:43:02 They're used from copresence_private_api.cc, other
not at google - send to devlin 2014/08/07 21:47:43 they're such low value though. A null check? It's
rkc 2014/08/07 22:03:45 Agreed, it isn't really a big benefit. Removed. Do
+CopresenceService* GetCopresenceService(
+ content::BrowserContext* browser_context);
+
+copresence::CopresenceClient* GetCopresenceClient(
+ content::BrowserContext* browser_context);
+
+copresence::WhispernetClient* GetWhispernetClient(
+ content::BrowserContext* browser_context);
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_COPRESENCE_COPRESENCE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698