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

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

Issue 469883002: Using API key specified from js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing review comments 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_api.h
diff --git a/chrome/browser/extensions/api/copresence/copresence_api.h b/chrome/browser/extensions/api/copresence/copresence_api.h
index 1f631a3bbe604085e9deaf1725e6e081725d38f9..c6f24e14066286407e10f71beff6ed09b3f0516a 100644
--- a/chrome/browser/extensions/api/copresence/copresence_api.h
+++ b/chrome/browser/extensions/api/copresence/copresence_api.h
@@ -55,7 +55,9 @@ class CopresenceService : public BrowserContextKeyedAPI,
const std::string& subscription_id,
const std::vector<copresence::Message>& message) OVERRIDE;
virtual net::URLRequestContextGetter* GetRequestContext() const OVERRIDE;
- virtual const std::string GetPlatformVersionString() const OVERRIDE;
+ virtual const copresence::DeviceFingerprint& GetDeviceFingerprint() const
+ OVERRIDE;
+ virtual const std::string& GetAPIKey() const OVERRIDE;
virtual copresence::WhispernetClient* GetWhispernetClient() OVERRIDE;
// BrowserContextKeyedAPI implementation.
@@ -65,6 +67,9 @@ class CopresenceService : public BrowserContextKeyedAPI,
std::map<std::string, std::string> apps_by_subscription_id_;
content::BrowserContext* const browser_context_;
+ copresence::DeviceFingerprint device_fingerprint_;
+ std::string api_key_;
+
scoped_ptr<copresence::CopresenceClient> client_;
scoped_ptr<copresence::WhispernetClient> whispernet_client_;
« no previous file with comments | « no previous file | chrome/browser/extensions/api/copresence/copresence_api.cc » ('j') | components/copresence/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698