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

Unified Diff: chromecast/shell/browser/geolocation/cast_access_token_store.h

Issue 223143003: Initial checkin of chromecast content embedder (cast_shell) and related build scripts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ScreenCast code and stale comments. Created 6 years, 6 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: chromecast/shell/browser/geolocation/cast_access_token_store.h
diff --git a/chromecast/shell/browser/geolocation/cast_access_token_store.h b/chromecast/shell/browser/geolocation/cast_access_token_store.h
new file mode 100644
index 0000000000000000000000000000000000000000..1a21442370bcac127b1c6059d3f2451fb9fad68c
--- /dev/null
+++ b/chromecast/shell/browser/geolocation/cast_access_token_store.h
@@ -0,0 +1,47 @@
+// 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 CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
+#define CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
+
+#include "content/public/browser/access_token_store.h"
+
+namespace content {
+class BrowserContext;
+}
+
+namespace chromecast {
+namespace shell {
+
+// Access token store for chromecast devices used to initialize the network
+// location provider.
+class CastAccessTokenStore : public content::AccessTokenStore {
+ public:
+ explicit CastAccessTokenStore(content::BrowserContext* browser_context);
+
+ private:
+ virtual ~CastAccessTokenStore();
+
+ // AccessTokenStore
+ virtual void LoadAccessTokens(
+ const LoadAccessTokensCallbackType& callback) OVERRIDE;
+
jam 2014/07/01 21:56:10 ditto (no blank line)
lcwu1 2014/07/02 23:30:33 Done.
+ virtual void SaveAccessToken(
+ const GURL& server_url, const base::string16& access_token) OVERRIDE;
+
+ void GetRequestContextGetterOnUIThread();
+ void RespondOnOriginatingThread();
+
+ content::BrowserContext* const browser_context_;
+ net::URLRequestContextGetter* request_context_;
+ AccessTokenSet access_token_set_;
+ LoadAccessTokensCallbackType callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(CastAccessTokenStore);
+};
+
+} // namespace shell
+} // namespace chromecast
+
+#endif // CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698