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

Side by Side Diff: content/shell/browser/shell_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 | « content/shell/browser/DEPS ('k') | content/shell/browser/shell_browser_main_parts.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_SHELL_BROWSER_SHELL_ACCESS_TOKEN_STORE_H_ 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_ACCESS_TOKEN_STORE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_ACCESS_TOKEN_STORE_H_ 6 #define CONTENT_SHELL_BROWSER_SHELL_ACCESS_TOKEN_STORE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "device/geolocation/access_token_store.h" 10 #include "content/public/browser/access_token_store.h"
11 #include "net/url_request/url_request_context_getter.h" 11 #include "net/url_request/url_request_context_getter.h"
12 12
13 namespace content { 13 namespace content {
14 class ShellBrowserContext; 14 class ShellBrowserContext;
15 15
16 // Dummy access token store used to initialise the network location provider. 16 // Dummy access token store used to initialise the network location provider.
17 class ShellAccessTokenStore : public device::AccessTokenStore { 17 class ShellAccessTokenStore : public content::AccessTokenStore {
18 public: 18 public:
19 explicit ShellAccessTokenStore( 19 explicit ShellAccessTokenStore(
20 content::ShellBrowserContext* shell_browser_context); 20 content::ShellBrowserContext* shell_browser_context);
21 21
22 private: 22 private:
23 ~ShellAccessTokenStore() override; 23 ~ShellAccessTokenStore() override;
24 24
25 void GetRequestContextOnUIThread( 25 void GetRequestContextOnUIThread(
26 content::ShellBrowserContext* shell_browser_context); 26 content::ShellBrowserContext* shell_browser_context);
27 void RespondOnOriginatingThread(const LoadAccessTokensCallback& callback); 27 void RespondOnOriginatingThread(const LoadAccessTokensCallback& callback);
28 28
29 // AccessTokenStore 29 // AccessTokenStore
30 void LoadAccessTokens(const LoadAccessTokensCallback& callback) override; 30 void LoadAccessTokens(const LoadAccessTokensCallback& callback) override;
31 31
32 void SaveAccessToken(const GURL& server_url, 32 void SaveAccessToken(const GURL& server_url,
33 const base::string16& access_token) override; 33 const base::string16& access_token) override;
34 34
35 content::ShellBrowserContext* shell_browser_context_; 35 content::ShellBrowserContext* shell_browser_context_;
36 scoped_refptr<net::URLRequestContextGetter> system_request_context_; 36 scoped_refptr<net::URLRequestContextGetter> system_request_context_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore); 38 DISALLOW_COPY_AND_ASSIGN(ShellAccessTokenStore);
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_SHELL_BROWSER_SHELL_ACCESS_TOKEN_STORE_H_ 43 #endif // CONTENT_SHELL_BROWSER_SHELL_ACCESS_TOKEN_STORE_H_
OLDNEW
« no previous file with comments | « content/shell/browser/DEPS ('k') | content/shell/browser/shell_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698