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

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

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extra DEPS: chromecast/crash/android --> chromecast/common Created 6 years, 2 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
deleted file mode 100644
index 215aae33d1f34f5dfc12dbe368ea3bbe300fe643..0000000000000000000000000000000000000000
--- a/chromecast/shell/browser/geolocation/cast_access_token_store.h
+++ /dev/null
@@ -1,47 +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 CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
-#define CHROMECAST_SHELL_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
-
-#include "base/macros.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 implementation:
- virtual void LoadAccessTokens(
- const LoadAccessTokensCallbackType& callback) override;
- 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