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

Side by Side Diff: chromecast/browser/geolocation/cast_access_token_store.h

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromeos/geolocation/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_ 5 #ifndef CHROMECAST_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
6 #define CHROMECAST_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_ 6 #define CHROMECAST_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "device/geolocation/access_token_store.h" 9 #include "content/public/browser/access_token_store.h"
10 10
11 namespace content { 11 namespace content {
12 class BrowserContext; 12 class BrowserContext;
13 } 13 }
14 14
15 namespace chromecast { 15 namespace chromecast {
16 namespace shell { 16 namespace shell {
17 17
18 // Access token store for chromecast devices used to initialize the network 18 // Access token store for chromecast devices used to initialize the network
19 // location provider. 19 // location provider.
20 class CastAccessTokenStore : public device::AccessTokenStore { 20 class CastAccessTokenStore : public content::AccessTokenStore {
21 public: 21 public:
22 explicit CastAccessTokenStore(content::BrowserContext* browser_context); 22 explicit CastAccessTokenStore(content::BrowserContext* browser_context);
23 23
24 private: 24 private:
25 ~CastAccessTokenStore() override; 25 ~CastAccessTokenStore() override;
26 26
27 // AccessTokenStore implementation: 27 // AccessTokenStore implementation:
28 void LoadAccessTokens(const LoadAccessTokensCallback& callback) override; 28 void LoadAccessTokens(const LoadAccessTokensCallback& callback) override;
29 void SaveAccessToken( 29 void SaveAccessToken(
30 const GURL& server_url, const base::string16& access_token) override; 30 const GURL& server_url, const base::string16& access_token) override;
31 31
32 void GetRequestContextGetterOnUIThread(); 32 void GetRequestContextGetterOnUIThread();
33 void RespondOnOriginatingThread(); 33 void RespondOnOriginatingThread();
34 34
35 content::BrowserContext* const browser_context_; 35 content::BrowserContext* const browser_context_;
36 net::URLRequestContextGetter* request_context_; 36 net::URLRequestContextGetter* request_context_;
37 AccessTokenMap access_token_map_; 37 AccessTokenMap access_token_map_;
38 LoadAccessTokensCallback callback_; 38 LoadAccessTokensCallback callback_;
39 39
40 DISALLOW_COPY_AND_ASSIGN(CastAccessTokenStore); 40 DISALLOW_COPY_AND_ASSIGN(CastAccessTokenStore);
41 }; 41 };
42 42
43 } // namespace shell 43 } // namespace shell
44 } // namespace chromecast 44 } // namespace chromecast
45 45
46 #endif // CHROMECAST_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_ 46 #endif // CHROMECAST_BROWSER_GEOLOCATION_CAST_ACCESS_TOKEN_STORE_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromeos/geolocation/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698